Jump to content
Sign in to follow this  
Bangomango

Limiting empty object actions to one unit

Recommended Posts

Is there a way to have add actions to an empty object that are only accessible to one unit instead of all units?

Share this post


Link to post
Share on other sites

Use the condition field of the action:

Only "myUnit" will see this action:

this addAction ["Perform My Action","myAction.sqf",[],1,false,true,"","[color="#FF0000"](_this == myUnit)[/color]"]; 

Only the driver of the vehicle will see this action:

this addAction ["Perform My Action","myAction.sqf",[],1,false,true,"","[color="#FF0000"](driver _target == _this)[/color]"]; 

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  

×