2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-08-27 08:19:39 +00:00
|
|
|
/*
|
|
|
|
* Author: voiper
|
|
|
|
* Check if an ammo classname is an IR chemlight.
|
|
|
|
*
|
|
|
|
* Arguments:
|
2016-08-31 20:12:40 +00:00
|
|
|
* 0: Projectile or ammo classname <OBJECT> or <STRING>
|
2016-08-27 08:19:39 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Is IR chemlight? <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* ["Chemlight_blue"] call ace_chemlights_fnc_isIRClass;
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params [["_input", "", ["", objNull]]];
|
|
|
|
|
|
|
|
private _class = if (typeName _input == "OBJECT") then {typeOf _input} else {_input};
|
|
|
|
|
|
|
|
isText (configFile >> "CfgAmmo" >> _class >> "ACE_Chemlight_IR")
|