mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
23 lines
513 B
Plaintext
23 lines
513 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: voiper
|
|
* Check if an ammo classname is an IR chemlight.
|
|
*
|
|
* Arguments:
|
|
* 0: Projectile or ammo classname <OBJECT> or <STRING>
|
|
*
|
|
* 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")
|