mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add some string checking for flashlight glow type.
This commit is contained in:
parent
f676f605f3
commit
b230762abd
@ -24,12 +24,13 @@ if (!isNull _light) then {deleteVehicle _light};
|
||||
if (_flashlight != "") then {
|
||||
_colour = getText (configFile >> "CfgWeapons" >> _flashlight >> "ItemInfo" >> "FlashLight" >> "ACE_Flashlight_Colour");
|
||||
|
||||
_class = switch (_colour) do {
|
||||
_class = switch (toLower _colour) do {
|
||||
case "white": {"ACE_FlashlightProxy_White"};
|
||||
case "red": {"ACE_FlashlightProxy_Red"};
|
||||
case "green": {"ACE_FlashlightProxy_Green"};
|
||||
case "blue": {"ACE_FlashlightProxy_Blue"};
|
||||
case "yellow": {"ACE_FlashlightProxy_Yellow"};
|
||||
default {"ACE_FlashlightProxy_White"};
|
||||
};
|
||||
|
||||
_light = _class createVehicle [0,0,0];
|
||||
|
Loading…
Reference in New Issue
Block a user