mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
26 lines
451 B
Plaintext
26 lines
451 B
Plaintext
/*
|
|
* Author: voioper
|
|
* Switch flashlight.
|
|
*
|
|
* Arguments:
|
|
* 0: Flashlight classname ("" for off) <STRING>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* ["ACE_Flashlight_MX991"] call ace_map_fnc_switchFlashlight;
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
params ["_flashlight"];
|
|
|
|
GVAR(flashlightInUse) = _flashlight;
|
|
if (GVAR(mapGlow)) then {
|
|
[GVAR(flashlightInUse)] call FUNC(flashlightGlow);
|
|
};
|
|
playSound QGVAR(flashlightClick);
|