2015-06-08 21:25:15 +00:00
|
|
|
/*
|
|
|
|
* Author: Jonpas
|
|
|
|
* Initializes the Sitting module.
|
|
|
|
*
|
|
|
|
* Arguments:
|
2015-08-07 13:12:24 +00:00
|
|
|
* 0: The module logic <LOGIC>
|
|
|
|
* 1: Units <ARRAY>
|
|
|
|
* 2: Activated <BOOL>
|
2015-06-08 21:25:15 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
2015-08-07 13:12:24 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
2015-06-08 21:25:15 +00:00
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
if !(isServer) exitWith {};
|
|
|
|
|
2015-08-07 13:12:24 +00:00
|
|
|
params ["_logic", "_units", "_activated"];
|
2015-06-08 21:25:15 +00:00
|
|
|
|
2015-08-07 13:12:24 +00:00
|
|
|
if (!_activated) exitWith {};
|
2015-06-08 21:25:15 +00:00
|
|
|
|
|
|
|
[_logic, QGVAR(enable), "enable"] call EFUNC(common,readSettingFromModule);
|
|
|
|
|
2015-08-26 13:20:11 +00:00
|
|
|
ACE_LOGINFO("Sitting Module Initialized.");
|