mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
324bf68614
- Add categories to zeus modules to group them based on their functionality - Add new utility modules: 1. Toggle simulation 2. Update editable objects - Clean up some of the zeus module code (standardise function headers, camel case, etc.)
28 lines
534 B
Plaintext
28 lines
534 B
Plaintext
/*
|
|
* Author: Fisher, SilentSpike
|
|
* Toggle Simulation on object.
|
|
*
|
|
* Arguments:
|
|
* 0: The module logic <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
params ["_logic"];
|
|
|
|
if !(local _logic) exitWith {};
|
|
|
|
private _object = attachedTo _logic;
|
|
if (isNull _object) then {
|
|
[LSTRING(NothingSelected)] call EFUNC(common,displayTextStructured);
|
|
} else {
|
|
[QEGVAR(common,enableSimulationGlobal), [_object, !(simulationEnabled _object)]] call CBA_fnc_serverEvent;
|
|
};
|
|
|
|
deleteVehicle _logic;
|