Jump to content
Sign in to follow this  
jubbie

triggers and animations

Recommended Posts

Hullo

I've got a mission with a guy talking who, once the player comes close to him, I want to have run away.

I've got a script that controls the animation (FXStandTalk) and a hold waypoint synced to a trigger that switches when the player is nearby.

What's happening is that the talking guy turns to run away but remains locked in his animation loop, so he doesn't actually go anywhere.

How do I get him out of it?

The script:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

#begin

~0.1

?(player distance guy)<10: goto "exit"

?(getdammage guy)>0.5:exit

guy switchmove "FXstandTalk"

~1

goto "begin"

#exit

guy switchmove "stand"

exit

Share this post


Link to post
Share on other sites

use <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">guy switchmove ""

I think that will quit the animation he is playing so he can run. Not sure though, long time since I've used switchmove crazy_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×