I need some help using the PushActorAway function. One instance where I would like to use this function is in a dialogue situation where certain responses will get the player pushed.
For this can I put the function in the 'Results Script' from a dialogue option? Or do I have to output a variable from the dialogue and call it in a script tied to the NPC? If i put this script on and NPC regardless of dialog what would that script look like? Here is my failed example of just trying to get the function to even work:
Scn Push
Begin GameMode
If Player.GetDistance AngryManRef < 2
AngryManRef.PushActorAway Player 25
Endif
End
I would attach this to the AngryMan reference but this script won't save as it does not compile properly.
I have seen this function explained in other posts as being attached to weapons but it implementation puzzles me when I look at the parameters in the G.E.C.K. wiki:
[ActorREF]PushActorAway TargetREF iForce
BuddyRef.PushActorAway FredRef 10
Any feedback is much appreciated!
