Wenn noch ein Codebeispiel zum Verständnis helfen sollte, hier mal meine fn_playerSkins.sqf (hat zwar keine playerSide Abfrage aber egal)
C
/*
File: fn_playerSkins.sqf
Author: Keine Ahnung.. Bohemia Wiki+SQF? o.O
Edit: Nox, www.ragecore.de / www.native-gamer.net
Modified by: blackfisch
Description:
Set textures on uniforms
*/
private _path = "";
params [
["_unit",player,[objNull]],
["_type","",[""]]
];
//KLEIDUNG
switch(_type) do {
case "U_Rangemaster" : {
if (playerSide isEqualTo independent) then {
_path = "textures\man\med\emt_uniform.paa";
} else {
_path = "textures\man\cop\cop_uniform.paa";
};
_unit setObjectTextureGlobal [0,_path];
};
case "U_Marshal" : {
_path = "textures\man\cop\off_duty.paa";
_unit setObjectTextureGlobal [0,_path];
};
case "U_B_CombatUniform_mcam" : {
_path = "textures\man\cop\cg_uniform.paa";
_unit setObjectTextureGlobal [0,_path];
};
case "U_B_CombatUniform_mcam_worn" : {
_path = "textures\man\cop\swat_uniform.paa";
_unit setObjectTextureGlobal [0,_path];
};
case "U_O_OfficerUniform_ocamo" : {
_path = "textures\man\med\fd_uniform.paa";
_unit setObjectTextureGlobal [0,_path];
};
};
//RUCKSÄCKE
if (playerSide in [west, independent]) then {
if (isNull (unitBackpack _unit)) exitWith {};
(unitBackpack _unit) setObjectTextureGlobal [0, ""];
};
Alles anzeigen