Faceshifter Posted April 2, 2011 Share Posted April 2, 2011 While I was trying to unravel the secrets of tossing people around, I encountered PushActorAway.This, of course, was a breakthrough, but I didn't quite understand it. I can't seem to find a way to create a spell with it, since I did not find the right function for identifying the target.I'm looking for some way to throw someone of his feet with a weapon. Come to think of it, I can't find a way to find the caster neither. Can anyone enlighten me? Link to comment Share on other sites More sharing options...
fg109 Posted April 2, 2011 Share Posted April 2, 2011 (edited) I think this will work, but I haven't tried it before. You might have to add a regular effect to the spell, like Light 1 ft for 1 second. scn example array_var temparray ref target ref caster short tempshort Begin ScriptEffectStart let temparray := GetActiveEffectCasters let tempshort := ar_size temparray - 1 let caster := temparray[tempshort] let target := GetSelf ;rest of your code Edited April 2, 2011 by fg109 Link to comment Share on other sites More sharing options...
The_Vyper Posted April 3, 2011 Share Posted April 3, 2011 I made a spell using that once. The script I used was: scn VypTitansPushScript ref target begin scripteffectstart set target to getself player.pushactoraway target 10000 End That sent targets flying. Link to comment Share on other sites More sharing options...
Faceshifter Posted April 3, 2011 Author Share Posted April 3, 2011 I was kinda thinking in the way of GetSelf, but I always thought it was just the player. How does GetSelf work then?Also your script will only happen if the player wields the weapon: player.pushactorawayHow about an NPC wielding it? Link to comment Share on other sites More sharing options...
Recommended Posts