Home   Help Search Login Register  

Author Topic: force ai to take weapon  (Read 1034 times)

0 Members and 1 Guest are viewing this topic.

Thanatos

  • Guest
force ai to take weapon
« on: 02 Nov 2005, 20:51:21 »
hi
have been trying without sucess to force an ai unit (civil) to pick up a weapon from a fallen soviet  b4 joining player...
have experimented with the action command TAKEWEAPON  this  forces the ai to go through the motions and it looks as though he has taken a wepon.. however the swine is only  "doing the moves" and  dose not actually take a weapon

can anyone help me fix this  as it is an integral part of a mission  whichwith this problem ironed out will be set for release

  thanx in advance
                      thanatos

Offline Ding

  • Contributing Member
  • **
  • Jurassic Park
Re:force ai to take weapon
« Reply #1 on: 02 Nov 2005, 21:07:18 »
why dont you just addweapon it? i msure yo ucan make it look just the same
"If I remain lost and die on a cross, atleast I wasn't born in a manger"

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:force ai to take weapon
« Reply #2 on: 02 Nov 2005, 21:23:38 »
The action command is "TAKE WEAPON" not "TAKEWEAPON"

Usage listed here:


TAKE WEAPON
unitname action ["take weapon",vehiclename,0,0,"weaponname"]
Unitname takes weapon of specified type from vehiclename,
Vehiclename can be a vehicle, crate or body.
Ammo for weapon is also taken.
Unitname can take weaponname from vehiclename even if unitname is on the other side of the island.



Planck
I know a little about a lot, and a lot about a little.

Thanatos

  • Guest
Re:force ai to take weapon
« Reply #3 on: 02 Nov 2005, 21:50:51 »
perfect
  thanx  mate