ACE3/TO_MERGE/cse/gui/radialmenu/fn_findTargetName_gui.sqf
Thomas Kooi db6f30fcc9 Added cse_gui source
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.
2015-01-12 23:23:51 +01:00

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