ACE3/addons/spectator/functions/fnc_penPos.sqf

33 lines
567 B
Plaintext
Raw Normal View History

2015-06-29 02:34:21 +00:00
/*
Author:
voiper
Description:
Determine spec pen position.
Arguments:
None
Example:
call ace_spectator_fnc_penPos;
Return Value:
None
Public:
No
*/
#include "script_component.hpp"
_mapSize = (configFile >> "CfgWorlds" >> worldName >> "mapSize");
_worldEdge = if (isNumber _mapSize) then {getNumber _mapSize} else {32768};
_pos = [_worldEdge * 2, _worldEdge * 2];
if (surfaceisWater _pos) then {
_pos set [2, -1.4];
GVAR(penPos) = ASLtoATL _pos;
} else {
_pos set [2, 0];
GVAR(penPos) = _pos;
};