Jump to content
Sign in to follow this  
bangtail

Trying to make an SQS!

Recommended Posts

I need to talk to an NPC - as a result of the conversation I want him to start his route. I'm using addaction and I have written a small script but Im not sure how to get him to move after I have spoken to him. I basically want it to act like a switch.

I talk to him and then he starts moving.

Any suggestions?

Cheers

E

Share this post


Link to post
Share on other sites

give the unit you want to move a Waypoint where you want it to wait and the next Waypoint where you want it to move to (or multiple waypoints) and in the "condition" field of the waypoint where you want it to wait write something like: MyVariable (MyVariable can be any valid name for a global variable). Then in your script that is executed with the action write

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">MyVariable = true;when you want the unit to continue with its waypoints.

Share this post


Link to post
Share on other sites

Set a waypoint for him to walk to. Synchronize that waypoint with a trigger that detects you in front of him.

You may want to put some pause time in the waypoint, the pause will happen after the trigger is hit. You can add actions to the trigger too. And the man will continue to his next way point after his pause.

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  

×