Jump to content
alleycat

How to check wether a player is a curator?

Recommended Posts

How to check wether a player is a curator?

The only wiki command that looked useful was allCurators, but that only shows the curatorobjects in the mission. And the eventhandler CuratorObjectRegistered only gets the curator objects. Also attempted owner of the curator object but that returns 0.

Share this post


Link to post
Share on other sites

my Zeus players are named bis_curator_Unit_1 for example, so if you compare player == bis_curator_unit_1 should give true if it is the curator.

hope this help and works, since I haven't tested it.

holo

Edited by holo89

Share this post


Link to post
Share on other sites

Thanks, I will see if it works and report back.

Share this post


Link to post
Share on other sites

Posting a solution I found for fellow googlefu users:

allCurators findIf {getAssignedCuratorUnit _x == <unit>}

This will return -1 if <unit> isn't a curator.

Share this post


Link to post
Share on other sites
On 3/17/2019 at 1:25 PM, Freddo3000 said:

Posting a solution I found for fellow googlefu users:


allCurators findIf {getAssignedCuratorUnit _x == <unit>}

This will return -1 if <unit> isn't a curator.

How about

!isNull (getAssignedCuratorLogic <unit>)

?

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

×