OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Devil Dog on 30 Jan 2003, 20:29:24

Title: Take magazine take weapon question
Post by: Devil Dog on 30 Jan 2003, 20:29:24
  I don't remember how to do this.
Unitname action ["Take magazine", sourcename,0,0, magazinetype
Now what is the source name and what are the numbers for please a actual weapon as example.
Also what is the action command for take weapon also.

 thanx in advance, John ???
Title: Re:Take magazine take weapon question
Post by: Tomb on 31 Jan 2003, 20:56:46
well, I've used a "drop weapon" spell - but I dunno of any "take weapon" command.
you tell me, m8 (when the rep's comes flooding in)  :o


 :) UnitName Action ["Drop Weapon",unit,0,0,"weapon"]

Back in the old days, some of us used to use these spells to simulate the action :

Tomb Action ["REARM", NameOfCrate]; Tomb AddMagazine "m16"; Tomb AddWeapon "M16"; etc.  :P
Title: Re:Take magazine take weapon question
Post by: Sui on 01 Feb 2003, 12:22:53
The syntax for take weapon/magazine:

soldiername action ["Take Weapon",weaponsource,0,0,"weapon"]
Take Magazine has exactly the same syntax as takeweapon... you'll just need to replace the weapon type with magazine type ;)

Happy Editing