2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-11-15 12:07:48 +00:00
|
|
|
/*
|
2023-08-17 10:02:17 +00:00
|
|
|
* Author: Fisher, kymckay
|
2016-11-15 12:07:48 +00:00
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
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;
|