Jump to content
Sign in to follow this  
Maurdekye

Custom Item in Crate are Clientside

Recommended Posts

In a recent mission I made, I placed some crates with custom weapons and items in them using this code;

clearItemCargo this; 
clearWeaponCargo this; 
clearBackPackCargo this; 
clearMagazineCargo this; 
this addItemCargo ["FirstAidKit", 40]; 
this addItemCargo ["Medikit", 4];

When I play the mission I can see the custom items just fine, but when I play with my friend he just sees the default contents of the crate, as though the code wasn't run. I can still remove the items and drop them on the ground for him to pick up, but he can't remove them from the crate.

Share this post


Link to post
Share on other sites
Why is there a different command for it?

Becuase sometimes you want to add stuff locally.

Domination did this, every player had 1 of every weapon in his crate.

Share this post


Link to post
Share on other sites
Why is there a different command for it?

sometimes you don't want all clients seeing an object.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×