Home   Help Search Login Register  

Author Topic: AI units getting armed!  (Read 612 times)

0 Members and 1 Guest are viewing this topic.

Ace Productions

  • Guest
AI units getting armed!
« on: 13 Sep 2003, 03:32:30 »
How can I make an AI unit via a script to take a weapon from a car? I've checked the ACTION command but I couldn't find a way.  ::)

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:AI units getting armed!
« Reply #1 on: 13 Sep 2003, 04:16:23 »
Try these - This works on bodies (taking weapons from bodies), but never tried in on vehicles or ammo crates.

_unit action["take weapon",mycar,0,0,"M16"]

_unit action["take magazine",mycar,0,0,"M16"]
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Ace Productions

  • Guest
Re:AI units getting armed!
« Reply #2 on: 13 Sep 2003, 11:09:50 »
Toadlife thanks a lot mate!!! It works perfectly!  ;D