ACE3/addons/map/functions/fnc_switchFlashlight.sqf

25 lines
453 B
Plaintext
Raw Normal View History

2015-08-11 17:49:39 +00:00
/*
* 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 "ACE_map_flashlightClick";