Jump to content
Sign in to follow this  
SINE

Finding out position of active Zeus

Recommended Posts

Hello dear ARMA 3 community.

I'm an admin in a gaming community and am the scripter of our arma mission for a few weeks.

I can't find out how to request the position from Zeus.

I've created a Module "Zeus" in the editor called "acam".

It can be controlled by the player called "admin_1".

Now I modified a script which can show nametags from the very popular mission called Altis Life RPG, to show nametags when I'm using ZEUS as the admin, so I can see who is where etc.

The only problem is, I don't know how to request the position from "acam".

That's the current Show-Tag Script I'm using for testing purposes:

/*
File: fn_playerTags.sqf
Author: Bryan "Tonic" Boardwine

Description:
Adds the tags above other players heads when close and have visible range.
*/
private["_visible","_position","_nearUnits"];
_nearUnits = (visiblePosition player) nearEntities ["Man",10];

if (str(player) in ["admin_1"]) then {
_nearUnits = (position acam) nearEntities ["Man",5000];
};

{
if( (str(player) in ["admin_1"]) && isPlayer _x ) then {
		_position = visiblePosition _x;
		posRank = visiblePosition _x;
		_position set[2,(getPosATL _x select 2) + 2.2];
		posRank set[2,(getPosATL _x select 2) + 2.4];

		drawIcon3D ["",[1,1,1,1],_position,0,0,0,name _x,0,0.04];
};
} foreach _nearUnits;

Now my problem is the line:

_nearUnits = (position acam) nearEntities ["Man",5000];

Doesn't return the position of the Zeus module and therefore will not show any player tags around it.

I tried also:

_nearUnits = acam nearEntities ["Man",5000];

and

_nearUnits = player nearEntities ["Man",5000];

But it doesn't work as it only tells the script the curator's position.

My 2 Questions:

A) What can I do to return the Zeus module's (camera) location?

B) Is there a way to find out if i'm currently inside Zeus or if the curator is not currently controlling Zeus?

Thanks very much in advance

Share this post


Link to post
Share on other sites

1) curatorCamera

2) curatorCamera is null when you're not in the interface, so simply check for !isnull curatorCamera

Share this post


Link to post
Share on other sites

Thanks, works.

Regards

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  

×