mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
22 lines
440 B
Plaintext
22 lines
440 B
Plaintext
/*
|
|
* Author: BaerMitUmlaut
|
|
* Switches the battery of any aircraft on or off.
|
|
*
|
|
* Arguments:
|
|
* 0: Aircraft <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [_helo] call ace_cockpit_interaction_fnc_switchBattery
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
params ["_vehicle"];
|
|
|
|
_vehicle setVariable [QGVAR(batteryOn), !(_vehicle getVariable [QGVAR(batteryOn), false]), true];
|
|
[_vehicle] call FUNC(updateElectricalPower);
|