Jump to content
  • 0

[Resolved] adding clothing to players


Pringlez

Question

Hello,

 

can anyone tell me the code for adding a helmet/hat etc... to a player?

 

This is what I have

if (!isServer) then {
	waitUntil {!isNull player};
	waitUntil {player == player};
	
	while {true} do {
		_player = player;
		player addEventHandler ["Respawn", {
			if (getPlayerUID player in ["0"]) then {
				player addWeapon "EpochRadio5";
				player addWeapon "ItemGPS";
				player addWeapon "ItemWatch";
				player addWeapon "ItemCompass";
				player forceAddUniform "U_OG_Guerilla3_2";
			}
		}];
		waitUntil {_player != player};
	};
};

I also need to add a Beret to this.

You see here that

player forceAddUniform "U_OG_Guerilla3_2";

is used to add the clothing to the player as they respawn, I need to know what to put here to force the

"H_11_EPOCH"

to spawn on the player too.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
        _head = [
            "H_39_EPOCH","H_40_EPOCH","H_41_EPOCH","H_42_EPOCH","H_43_EPOCH","H_44_EPOCH","H_45_EPOCH","H_46_EPOCH","H_47_EPOCH","H_48_EPOCH","H_49_EPOCH","H_50_EPOCH",
            "H_51_EPOCH","H_52_EPOCH","H_53_EPOCH","H_54_EPOCH","H_55_EPOCH","H_56_EPOCH","H_57_EPOCH","H_58_EPOCH","H_59_EPOCH","H_60_EPOCH","H_61_EPOCH","H_62_EPOCH",
            "H_63_EPOCH","H_64_EPOCH","H_65_EPOCH","H_66_EPOCH","H_67_EPOCH","H_68_EPOCH","H_69_EPOCH","H_70_EPOCH","H_74_EPOCH","H_75_EPOCH","H_76_EPOCH","H_77_EPOCH",
            "H_78_EPOCH","H_79_EPOCH","H_80_EPOCH","H_81_EPOCH","H_82_EPOCH","H_83_EPOCH","H_84_EPOCH","H_85_EPOCH","H_86_EPOCH","H_87_EPOCH","H_88_EPOCH","H_89_EPOCH",
            "H_90_EPOCH","H_91_EPOCH","H_92_EPOCH","wolf_mask_epoch","pkin_mask_epoch"
        ] call BIS_fnc_selectRandom;


player addHeadGear _head;

Or just :

Player addheadgear "H_11_EPOCH";
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...