Jump to content
Sign in to follow this  
fasterthanlight

Add action to join your team

Recommended Posts

I did a quick search and did not find what I wanted.

I am looking to have 2 pilots join my team after an add action selection that does not require you to be a rescue operator. This is a non Dom map.

What, if any script do I need, and what goes in the init?

Share this post


Link to post
Share on other sites

init of the unit to recruit:

this addAction["Rescue","rescue.sqf"];

rescue.sqf:

_per = _this select 0;  // Person who had the addAction
_ldr = _this select 1;  // Person who used the addAction
_act = _this select 2;  // ID of the addAction

// Remove the rescue option
_per removeAction _act;

// Join callers group, silently.
[_per] joinSilent _ldr;

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  

×