Home   Help Search Login Register  

Author Topic: How do I make a Soldier drop his weapon?  (Read 1687 times)

0 Members and 1 Guest are viewing this topic.

Frosty

  • Guest
How do I make a Soldier drop his weapon?
« on: 25 Aug 2002, 03:51:53 »
Does anyone know the action to make a soldier drop his weapon. I tried:

LAW action["DROP_WEAPON",LAWLauncher]

but that didn't work. I "believe" that that is the correct action, I found it in the Resistance stringtable.
Any help would be appreciated.
Thanks, Frosty

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:How do I make a Soldier drop his weapon?
« Reply #1 on: 25 Aug 2002, 05:28:27 »
well I don't either, but

unitname action ["Drop Weapon", "weaponanme"]

makes him do the action he just doesn't drop anything

Frosty

  • Guest
Re:How do I make a Soldier drop his weapon?
« Reply #2 on: 25 Aug 2002, 08:10:23 »
Nah, I tried that on a LAW Launcher, doesn't work. I was gonna (if it worked) make the condition when his LAW ammo ran out he drops the tube. I don't want to do removeweapon cos it'll not look good.

Gameer_77

  • Guest
Re:How do I make a Soldier drop his weapon?
« Reply #3 on: 25 Aug 2002, 17:27:15 »
To drop magazine use:

soldiername action ["drop magazine",soldiername,0,0,"m16"]

To drop weapon use:

soldiername action ["drop weapon",soldiername,0,0,"m16"]

Dont ask me what the 0's mean.  :-\ Also It appears you have to be in the units group to pick up the weapon/magazine although i may be wrong.

 8)PEACE

Offline Gastovski

  • Members
  • *
  • #loop; Gastovski setdammage 0; ~0.01; goto "loop";
    • Falklands Mod
Re:How do I make a Soldier drop his weapon?
« Reply #4 on: 25 Aug 2002, 23:10:34 »
I would think that the 0's decide how far ahead of the soldier the weapons are placed...

Gameer_77

  • Guest
Re:How do I make a Soldier drop his weapon?
« Reply #5 on: 25 Aug 2002, 23:18:23 »
Emmm...Yeh, yeh...I guess that could be it.  ::)

 8)PEACE

Frosty

  • Guest
Re:How do I make a Soldier drop his weapon?
« Reply #6 on: 26 Aug 2002, 11:13:10 »
Thanks.
BTW the 0s actually are two other variables, 0 for none, as they are not used.

Cedaie

  • Guest
Re:How do I make a Soldier drop his weapon?
« Reply #7 on: 28 Aug 2002, 08:55:25 »
??? so you mean u can drop multiple weapons with those 0's?

lilmat

  • Guest
Re:How do I make a Soldier drop his weapon?
« Reply #8 on: 21 Sep 2002, 10:41:24 »
Hey here is two easy ways for this!! ;)
ONE- If he was surrendering.
unit switchmove "fxstandsurdown" he will put his weapon
on the ground and put his hands behind his head!

TWO- removing weapon
unit switchmove "combattoputdown"
~0.8
unit removeweapon"m16"
then he will stand with arms at side!
Then you can use the other commands that have been posted
in this post. 8)
Hope this helps ;D

Offline Davies1

  • Members
  • *
  • Bugger this for a game of soldiers!
Re:How do I make a Soldier drop his weapon?
« Reply #9 on: 21 Sep 2002, 15:10:12 »
the subject line's a bit dirty heh :P
Beer is the fuel for the Heavy Metal Engine.