Home   Help Search Login Register  

Author Topic: unit action[]  (Read 466 times)

0 Members and 2 Guests are viewing this topic.

Offline benreeper

  • Members
  • *
  • I'm a llama!
unit action[]
« on: 13 Feb 2003, 01:44:46 »
I have tried everything:
unit action ["Drop %1", weapon name],
unit action ["Drop %1", PrimaryWeapon unit],
etc. and I cannot get a unit to drop their weapon.  I can't get them to place it on their backs also.  Does anyone know how this action works?

Ben

Cedaie

  • Guest
Re:unit action[]
« Reply #1 on: 15 Feb 2003, 06:00:11 »
err, I can't quite remember the drop weapon syntax, but to get the weapon on there back just type unit setbehaviour "safe".

Cheers  :P
« Last Edit: 15 Feb 2003, 06:00:37 by Cedaie »

Flapje

  • Guest
Re:unit action[]
« Reply #2 on: 22 Feb 2003, 20:20:55 »
to drop a gun on the ground do this command: unit action ["DROP WEAPON", unit, 0, 0, (primaryweapon unit)]

so if you want a guy with name unit1 to drop his M16 on the ground, you type: unit1 action ["DROP WEAPON", unit1, 0, 0, M16]

dunno if I'm totally right  ;) but maybe this'll help you

« Last Edit: 22 Feb 2003, 20:21:39 by Flapje »

Offline benreeper

  • Members
  • *
  • I'm a llama!
Re:unit action[]
« Reply #3 on: 25 Feb 2003, 00:08:45 »
It did.

Ben