ACE3/addons/respawn/functions/fnc_canMoveRallypoint.sqf
2015-01-12 10:49:30 +01:00

17 lines
477 B
Plaintext

// by commy2
private ["_unit", "_side"];
_unit = _this select 0;
_side = _this select 1;
// rallypoint names are defined in CfgVehicles.hpp
_unit getVariable ["ACE_canMoveRallypoint"), false]
&& {!isNull ([
objNull,
missionNamespace getVariable ["ACE_Rallypoint_West", objNull],
missionNamespace getVariable ["ACE_Rallypoint_East", objNull],
missionNamespace getVariable ["ACE_Rallypoint_Independent", objNull]
] select ([west, east, independent] find _side) + 1)}