Jump to content
Varhastra

[SOLVED] Need help with triggers

Recommended Posts

Hey, I'm trying to make a mission where the player rescues groups of soldiers from OpFor assaults, how do I make it so that only when the trigger is activated will the squads join with the player's squad? I've tried a few ways and one almost worked except the squads would go back to the initial spawn point of the player before joining the squad. Is there a way to make the squad join the player on the spot after trigger activation?

 

Edit: I don't want to use the "Join and lead" waypoint because I want to make some of the rescues optional objectives

Share this post


Link to post
Share on other sites

You can spawn a group in your trigger and for example name it mygroupname then use :

 

Condition:

This

 

Active:

Anyplayer

 

On activation:

Hint "oh you find us..";

{ _x joinSilent (group player)} foreach units mygroupname;

Then player move in trigger and group join him and hint text showed.

 

You can use some sound too

For better effect.

Share this post


Link to post
Share on other sites

And about as same as the above:

 

[_unitOne, _unitTwo] joinSilent (group player); 

or

[_unitOne, _unitTwo] joinSilent player;

since you want secondary objectives so each unit can join separately. And for the condition a simple:

 

NameOfUnit distance NameOfPlayer < 10;

 

that will activate a nice hold action feature:

 

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

×