Jump to content
fabrizio_t

Quick question: how to check if some unit is remotely controlled by player (ZEUS)

Recommended Posts

Hello,

i have a quick and simple question, as per title.

Basically i need to know how to check whether some unit is being remotely controlled by a (ZEUS) player.

So far i've seen that isPlayer returns false, which is something unexpected for me.

Ty.

Share this post


Link to post
Share on other sites
Hi,

I'd check here to get a list of curators:

https://community.bistudio.com/wiki/allCurators

Then you can get their assigned units with this:

https://community.bistudio.com/wiki/getAssignedCuratorUnit

There might be a command to check the owner of a unit, but I don't know it.

Ty.

Tried with BIS_fnc_isCurator so far, no luck.

I'll try following your advice

---------- Post added at 21:20 ---------- Previous post was at 21:08 ----------

Tried with this quick and dirty function:

fnc_is_curator = {

private ["_ret", "_x", "_curator"];

_ret = false;

Scopename "isCuratorMain";

{
	_curator = getAssignedCuratorUnit _x;

	if( _curator  == _this ) then 
	{
		_ret = true;

		breakTo "isCuratorMain";
	};

} foreach allCurators;

_ret
};

but myUnit call fnc_is_curator always returns false.

Basically curator is bis_curatorUnit and getAssignedCuratorUnit always returns bis_curatorUnit as well (even if player is remote controlling some unit).

Edited by fabrizio_T

Share this post


Link to post
Share on other sites
private _isZeus = not isNull ( getAssignedCuratorLogic _unit );

 

  • Haha 1

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

×