2016-11-15 12:07:48 +00:00
|
|
|
/*
|
|
|
|
* Author: Fisher, SilentSpike
|
|
|
|
* Toggle Simulation on object.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The module logic <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2017-06-08 13:31:51 +00:00
|
|
|
* Example:
|
|
|
|
* [LOGIC] call ace_zeus_fnc_moduleSimulation
|
|
|
|
*
|
2016-11-15 12:07:48 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
params ["_logic"];
|
|
|
|
|
|
|
|
if !(local _logic) exitWith {};
|
|
|
|
|
|
|
|
private _object = attachedTo _logic;
|
|
|
|
if (isNull _object) then {
|
2017-03-02 23:47:49 +00:00
|
|
|
[LSTRING(NothingSelected)] call FUNC(showMessage);
|
2016-11-15 12:07:48 +00:00
|
|
|
} else {
|
|
|
|
[QEGVAR(common,enableSimulationGlobal), [_object, !(simulationEnabled _object)]] call CBA_fnc_serverEvent;
|
|
|
|
};
|
|
|
|
|
|
|
|
deleteVehicle _logic;
|