2015-06-29 02:34:21 +00:00
|
|
|
/*
|
2015-07-04 23:17:15 +00:00
|
|
|
* Author: voiper
|
|
|
|
* Read spectator settings from module
|
2015-06-29 02:34:21 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2015-07-04 23:17:15 +00:00
|
|
|
* 0: The module logic <LOGIC>
|
|
|
|
* 1: units <ARRAY>
|
|
|
|
* 2: activated <BOOL>
|
2015-06-29 02:34:21 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2015-07-04 23:17:15 +00:00
|
|
|
* None <NIL>
|
|
|
|
*
|
|
|
|
* Public: No
|
2015-06-29 02:34:21 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
PARAMS_3(_logic,_units,_activated);
|
|
|
|
|
|
|
|
if !(_activated) exitWith {};
|
|
|
|
|
2015-07-04 23:10:01 +00:00
|
|
|
[_logic, QGVAR(enabled), "SpectatorEnabled"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(limitSide), "SpectatorPlayerSide"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(AI), "SpectatorAI"] call EFUNC(common,readSettingFromModule);
|
2015-06-29 02:34:21 +00:00
|
|
|
[_logic, QGVAR(tracking), "SpectatorTracking"] call EFUNC(common,readSettingFromModule);
|
2015-07-04 23:10:01 +00:00
|
|
|
[_logic, QGVAR(modulePos), "SpectatorPos"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(endMission), "SpectatorEnd"] call EFUNC(common,readSettingFromModule);
|
2015-06-29 02:34:21 +00:00
|
|
|
|
2015-07-04 23:17:15 +00:00
|
|
|
if (GVAR(modulePos)) then {
|
2015-06-29 02:34:21 +00:00
|
|
|
GVAR(startingPos) = getPosATL _logic;
|
|
|
|
GVAR(startingDir) = getDir _logic;
|
2015-07-04 23:10:01 +00:00
|
|
|
};
|