OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Iva on 01 Jul 2004, 22:10:44
-
Is there some way to get name of curently selected weapon or name of weapon that was just selected? ???
-
_ap=_this select 0
#main
_weapon=primaryweapon _ap
?_weapon=="m16":hint"you get it"
goto"main"
-
Nope, won't work Tony...
primaryWeapon returns the weapon in the primary weapon slot, not the weapon the soldier has selected / is holding...
But, if I misunderstood the first post, my apologies... ::)
-
Nope. Im searching for script that sa Hater_Kint said that returns curent selected weapon!
Something like
_wep = _unit selectedweapon
or something :-\
-
Maybe some fancy nearestObject rune would do the trick?
Maybe the weapon could be detected with that, but then it would still probably pick the weapon on the units back as it's closer ::)
I think this is with the 'get units stance' is one the features BIS have forgotten to release for public use...