Jump to content
Sign in to follow this  
DieselJC

Script to force uniform?

Recommended Posts

Looking for a script for a server that will force a player to actually wear a uniform ...too many times people are running around with no clothes to try and lighten their load to offset the stamina and I'd like to force a uniform on them if they don't pick one...don't know if this is possible but thought I'd ask. :)

Diesel

Share this post


Link to post
Share on other sites

player addEventHandler ["InventoryClosed", { if ((uniform player) == "") then { player forceAddUniform "U_B_CombatUniform_mcam"; }; }];

This would check each time the player closes his inventory, then add the uniform, if needed.

If this is just for one mission, you add that line into your init.sqf or initPlayerLocal.sqf.

If you want this for ALL missions you would have to make a serverside pbo, I can show you how, let me know.

Share this post


Link to post
Share on other sites

Thanks for the reply..its just for one mission at the moment but I'll keep this thread in mind if it ends up as more..much appreciated for the info!

Diesel

Share this post


Link to post
Share on other sites

This will be extremely useful. Now to limit this to specific uniform classes.

P.S: hey Diesel buddy.

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  

×