Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
eagledude4

Issue removing uniforms in multiplayer

Recommended Posts

I have the following code in a unit's init line:

removeAllWeapons this;  {this removeMagazine _x} forEach magazines this;  removeUniform this;  removeHeadgear this;  removeGoggles this;

The unit spawns in their underpants in the single player editor, but in multiplayer, they spawn with a blue shirt and khaki shorts. Also, when I go into the inventory, there's no uniform.

I'm running this in the development build beta, so this might just be a bug.

arma32013-06-2404-42-45-90_zpsae3b6ed8.jpg

Edited by eagledude4

Share this post


Link to post
Share on other sites

Probably related to this: http://feedback.arma3.com/view.php?id=7879 Try changing order of things, here is how I clear units off their gear:

removeUniform _player;
removeAllWeapons _player;
removeAllAssignedItems _player;
removeAllContainers _player;
_player addWeapon "ItemMap";
_player addWeapon "ItemCompass";
_player addWeapon "ItemRadio";
_player addWeapon "ItemWatch";

(replace "_player" with "this")

Share this post


Link to post
Share on other sites

How about removing items and backpacks, specifically I want to remove all of the parachutes from the Helicopters as they seem to be the culprit in our server crashes. I've already got them pulled out of VAS.

Share this post


Link to post
Share on other sites

Same behavior using your code, samatra. Attached an image to the first post.

Share this post


Link to post
Share on other sites

Try

this addUniform "U_BasicBody"; removeUniform this;

Share this post


Link to post
Share on other sites

That seemed to work, but I don't fully understand how I'm able to add a uniform over the one I'm originally spawned in with.

Edited by eagledude4

Share this post


Link to post
Share on other sites
Sign in to follow this  

×