-
-
Notifications
You must be signed in to change notification settings - Fork 7
KPR_fnc_getInsigniaData
Christian edited this page Aug 21, 2018
·
1 revision
Gets specific data of the insignia of the provided player object. Returns an array with the corresponding insignia data on success or an empty array if no data could be retrieved.
- 0: OBJECT - Player object from which the rank should be retrieved (default: player)
- ARRAY
- 0: STRING - material (rvmat) of the insignia
- 1: STRING - path to the texture of the insignia
- 2: STRING - rank name without the prefix like "USA11". It only contains the rank name like "Master Sergeant"
- 3: NUMBER - index of the player uniform in the KPR_uniforms array, -1 if not wearing an activated uniform
// Get the insignia class data of the executing player
private _dataArray = [] call KPR_fnc_getInsigniaData;
_dataArray params ["_material", "_texture", "_name", "_uniformIndex"];
// Get the insignia class data of the player with the name "Testman"
private _dataArray = [];
{
if (name player == "Testman") exitWith {_dataArray = [_x] call KPR_fnc_getInsigniaData;};
} forEach (allPlayers - entities "HeadlessClient_F");