Jump to content
Yurishenk

Please help with two scripts for my MP mission

Recommended Posts

Hello everyone! I'm trying to create a multiplayer mission to play with my friends but I'm really almost a total newbie to scripting so I was hoping you could help me with a couple of requests.

 

1st. I need a method so that players cannot delete or add anything to their inventory (I mean backpacks, helmets, weapons, accessories, etc ...) Obviously the ammunition and and the objects such as grenades, medical kits and the rest of the items yes they can be added and removed at will. Specifically, it is essential that if a player does not have a (example) launcher in his inventory when spawning, he cannot simply pick it up.

 

2nd. Some way so that only certain types of units are allowed to use the driver, turret and gunner seats in certain types of vehicles.

 

My mission uses ArmA's original vehicle and unit respawn system, so if you can make this work forever with any unit that respawns or spawns during the rest of the mission,  that would be perfect. Thank you very much in advance and I look forward to your help.

 

PS: I don't know how to speak English so I use google as my assistant;)
 

Share this post


Link to post
Share on other sites

For 1:  call a function that checks the player's inventory against what they had originally from take & inventory closed EHs.  And remove everything they shouldn't have

 

For 2: use a getInMan & seatSwitchedMan EHs and eject the player out of the vehicle if they're not allowed to. 

Share this post


Link to post
Share on other sites
6 hours ago, stanhope said:

For 1:  call a function that checks the player's inventory against what they had originally from take & inventory closed EHs.  And remove everything they shouldn't have

 

For 2: use a getInMan & seatSwitchedMan EHs and eject the player out of the vehicle if they're not allowed to. 

Thanks for your quick reply @Stanhope. but like I said, I really have no idea how to use those functions. Could you please show me how it should be done? sorry for my ignorance.

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

×