Jump to content
Cigs4

Condition for players except Zeus

Recommended Posts

Hello Arma gurus!

I need a little help, please.

I'm trying to create a waypoint or trigger condition which activates with playableUnits present, EXCEPT a player who is a Curator. Is that possible?

Thanks in advance!

Share this post


Link to post
Share on other sites

Selecting players during a mission (with JIP compatibility) can be a hassle. This can be avoided with simple mission design. 

Does your curator have to be BLUFOR/OPFOR?

If not, then you can make your Curator player a civilian, and change the trigger to activate for a particular side. Just use the dropdown menu in the editor. 

If yes, then you can select all the players, and remove the player that is found in the https://community.bistudio.com/wiki/allCurators from the array. Give it a try, and come back if you get stuck on coding this.  

Share this post


Link to post
Share on other sites

allCurators is returning logics, not assigned units.

 

See getAssignedCuratorUnit and this example:

_curatorUnit = getAssignedCuratorUnit (allCurators select 0);

_curatorUnit joinAs [createGroup civilian, 0];

If you don't want to change side for curator, you can find the players non-curator in an area (trigger or else) by:

(allPlayers - (allCurators apply {getAssignedCuratorUnit _x}) ) select {_x inArea thisTrigger or any marker zone}
 

  • Like 1

Share this post


Link to post
Share on other sites

That's what I get for giving advice without trying it out myself first. Thanks Pierremgi!

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

×