Jump to content
Sign in to follow this  
mp82

Making units pick up weapons

Recommended Posts

Is it possible to make a unit that has no weapon run to a ammo crate and pick up a weapon?

Share this post


Link to post
Share on other sites

Yes. Give the unit a name, say unit1, then a waypoint wherever you want him to pick up the weapon. Make a small trigger over this waypoint and group it with him to make sure only he can activate it. In the triggers on activation field type unit1 addmagazine"m16"; unit1 addmagazine"m16"; unit1 addmagazine"m16"; unit1 addmagazine"m16"; unit1 addweapon"m16". Replace m16 with the appropriate weapon. Make sure you use addmagazine first otherwise the weapon isnt loaded.

Share this post


Link to post
Share on other sites

I want it to pick up the gun not trick with that script

Share this post


Link to post
Share on other sites

yes...but i suggest that you do scriptting. and i'm not good at it, so i can only help you with removeing all weapons.

put this in the soldier's init field.

removeAllWeapons this

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  

×