Home   Help Search Login Register  

Author Topic: Do not pick up that weapon!  (Read 586 times)

0 Members and 1 Guest are viewing this topic.

Ace Productions

  • Guest
Do not pick up that weapon!
« on: 09 Sep 2004, 00:15:44 »
Ok everybody.

Is there any possible way to stop a unit from picking up a weapon? What I mean is that the weapon lies on the ground but the unit must not take it, or in other words forbid the unit in some way to carry a primary weapon.  ::)

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Do not pick up that weapon!
« Reply #1 on: 09 Sep 2004, 00:28:16 »
Well... you could have a script that removes a primary weapon from the unit whenever he picks one up:

Code: [Select]
#loop
? (primaryweapon _this) != "" : _this removeweapon primaryweapon _this
~1
? alive _this : goto "loop"
exit
But you can't actually prevent the unit from picking up a weapon via the action, aside from making an addon that has no primary weapon slot. Another alternative would be to delete a unit's primary weapon when he is killed.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Ace Productions

  • Guest
Re:Do not pick up that weapon!
« Reply #2 on: 09 Sep 2004, 17:25:41 »
It worked just fine General. Thanks once again for your help.