Home   Help Search Login Register  

Author Topic: Making AI drop weapons?  (Read 710 times)

0 Members and 1 Guest are viewing this topic.

burgermann

  • Guest
Making AI drop weapons?
« on: 13 May 2004, 13:33:52 »
How the heck do I make an AI drop his weapon?..  I'm trying to make this.. erhh.. player-arrest-AI procedure. U guys know the rutine..
"DROP YOUR WEAPON, scumbag."
then "GET DOWN".. and finaly get in the jeep! :P

Problems is I can only get the AI to drop weapons using removeAllWeapons this and my addAction["Drop your weapon", ...], and his piece disappears.

So I want the AI to drop his weapon on the ground, for me (or my trusted deputy), to pick up. ???

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Making AI drop weapons?
« Reply #1 on: 13 May 2004, 18:00:57 »
From sticky post: The time for action has come! (Editing: General)

unit action ["Drop Weapon",unit ,0,0,primaryweapon unit]

If they have a secondary weapon (at weapon), put this line too:

unit action ["Drop Weapon",unit ,0,0,secondaryweapon unit]

They could still have weapons like grenades, etc on them after that, after that, you should put:

removeallweapons unit
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!

burgermann

  • Guest
Re:Making AI drop weapons?
« Reply #2 on: 13 May 2004, 18:35:52 »
Thanks for tip, works instantly, no more  screaming and yelling behind my screen... wonder what the parameters are; action[...0,0,...]