OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: StonedSoldier on 20 Jan 2005, 23:26:53

Title: Returning Currently Selected Weapon
Post by: StonedSoldier on 20 Jan 2005, 23:26:53
how do vi return the name of the currently selected weapon so say the guy has a rifle and a sidearm, how can i tell which he has currently selected
Title: Re:Returning Currently Selected Weapon
Post by: Planck on 21 Jan 2005, 04:52:19
Sorry..........I don't think you can.

You can find out what his primary and secondary weapons are, but you can't tell which one he is currently using........unless of course you can see him.   ;D


Planck
Title: Re:Returning Currently Selected Weapon
Post by: THobson on 21 Jan 2005, 11:12:42
Planck is right.  I tried for ages on this
Title: Re:Returning Currently Selected Weapon
Post by: redgun on 21 Jan 2005, 17:39:13
if he really uses it = shoots, a EH should do the job
Title: Re:Returning Currently Selected Weapon
Post by: macguba on 22 Jan 2005, 15:48:43
I suppose in principle you could issue him with a fire command and use the "fired" EH to find out what weapon he is holding and delete the bullet.    Not always appropriate though.