Jump to content
Sign in to follow this  
Ikavnieks

Units appear when trigger is activated

Recommended Posts

Hey, so in my mission you have to assassinate a target, when that target is killed, I was wondering if there was a script available for making enemy reinforcements show up? Until a helicopter arrives, if not is there anyway to make the reinforcements just move in from being hidden in the nearby city? I tried the whole "redinarea=true" type of script and they'd just ignore it and move to the waypoint regardless of whether I was inside the trigger.

Thanks,

Share this post


Link to post
Share on other sites

quite sure you could place the reinforcements with waypoints and set the first and second waypoint close to the reinforcement units and set a condition in the second waypoint to check if the target-unit is dead. when the condition 'dead' is met the units will move to the second waypoint and then to the third etc..

search for eventhandlers in the forums and you might find something about the exact code you need. (I'm also learning this stuff - but that's the general idea how I would do it)

Share this post


Link to post
Share on other sites

Easiest way would be to place the reinforcements somewhere out of sight, with a few waypoints leading upto where you want them to arrive at once the target is dead, make a trigger with

Activation = Anybody

Condition = ! (alive TargetName)

then use the Min Mid Max numbers to whatever kind of delay you want, might aswell leave them all at 0

then select synchronize and click and drag a line from the trigger to the waypoint you want the reinforcements to wait at until the target unit is dead, then once it is dead, they will start moving to where you want them to.

That's the simple way, but if you know about spawning units, then you can make a script to spawn what you want, where you want etc.

Share this post


Link to post
Share on other sites

Thanks guys.

Koni your method worked best for me, very simple and easy to set up, thanks!

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  

×