OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: pileofsocks on 27 Jan 2004, 04:53:52

Title: weapon names...
Post by: pileofsocks on 27 Jan 2004, 04:53:52
Ok, when adding weapons to a unit, i want to use a weapon that was downloaded.  Now it does not tell me the name of the weapon, so when i go to add the weapon and the magazine, i dont know the name...  is there a way to find it out in ofp?  for example  this addweapon "nameofweapon"; now how would i figure out the weapon name?  well i hope i dont sound 2 stupid on this.  thanx
Title: Re:weapon names...
Post by: Planck on 27 Jan 2004, 04:56:01
Unpack the pbo and read the config.cpp..........the weapon names and ammo names should be in there.



Planck
Title: Re:weapon names...
Post by: macguba on 27 Jan 2004, 10:38:16
Or use this trigger.   Make sure you name the dude loon1 and that he has the weapon and ammo you need to know about.

Condition:  true
On activation:   hint format ["weapon - %1\nmagazines - %2", weapons loon1, magazines loon1]

Syntax not guaranteed.