Jump to content
Sign in to follow this  
icewindo

Waypoints and conditions [not working?]

Recommended Posts

Hi,

so I'm working on my mission and a intro for it and I have a problem with the waypoints. In the intro some soldier should drive with a car, get out ,walk to another person, talk for some time and then the person drives away. The talking etc. works fine with triggers who need "out" as true which activates on activation of the "get out" waypoint.

However the "get in" waypoint doesn't work right. I setup the waypoint to need a condition ("end talk") as true, which shows up as true when the talk is over, but the person will run into the car the instant the intro starts and stay there until "end talk" shows up as true, at which point he enters crazy_o.gif . This is obviously not working right as the person shouldn't move at all until the "end talk" is true. Did I make something wrong?

This is how the waypoint setup looks like:

aa1lb6.th.jpg

I allready tried to solve this by looking for commands, e.g. doMove but I only found commands beaming the unit instantly into the car, which is no option.

And how do I use conditions in scripts, e.g. the camera script? Will "If endtalk==true then unit123 doMove getpos Unit124" work?

Share this post


Link to post
Share on other sites

You can use

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

[unitname] orderGetIn true

This will assign "unitname" as driver for "carname"

Problem in your setup is that GetIn waypoint is number 0 on the list, that means the unit will go there no matter what.

Use the above code in your OnActivation of a timed trigger that fires when the conversation has ended. Do so by inserting a time delay into the 3 center timeboxes according to the length of your sample.

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  

×