OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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 ???
-
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
-
The syntax for take weapon/magazine:
soldiername action ["Take Weapon",weaponsource,0,0,"weapon"]
- weaponsource - The name what has the weapon... eg. an ammo crate, vehicle or the name of a dead body ;)
- weapon - The name of the weapon type you want the soldier to take... eg. "m16", "FAL" etc. You can find a weapon and ammo list in the Editor's Depot (http://www.ofpec.com/editors/browse.php?browsewhat=1&category=1_3).
Take Magazine has exactly the same syntax as takeweapon... you'll just need to replace the weapon type with magazine type ;)
Happy Editing