mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
db6f30fcc9
Does not include the Icon pack. When using the UI it may throw up some missing .paa file errors. Replacements will need to be found if we want to use those.
20 lines
528 B
Plaintext
20 lines
528 B
Plaintext
/**
|
|
* fn_findTargetName_gui.sqf
|
|
* @Descr: Get the target name
|
|
* @Author: Glowbal
|
|
*
|
|
* @Arguments: [target OBJECT]
|
|
* @Return: STRING name of Target
|
|
* @PublicAPI: true
|
|
*/
|
|
|
|
private ["_target","_targetName"];
|
|
_target = [_this, 0, ObjNull, [ObjNull]] call BIS_fnc_Param;
|
|
|
|
_targetName = switch (true) do {
|
|
case (_target isKindOf "CaManBase"): {([_target] call cse_fnc_getName)};
|
|
case ((_target isKindOf "All")): {(getText(configFile >> "Cfgvehicles" >> typeof _target >> "displayName"))};
|
|
default {"Object"};
|
|
};
|
|
|
|
_targetName |