OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 19 Jun 2005, 17:10:12
-
okay in the event handler fired there is
_firemode = _this select 3
wich detects what mode the player is firing in i want to be able to check if it is auto or burst then goto a next part of a script i tried this even though i knew it wouldnt work but still no error messages
? player hasWeapon "M16" or player hasWeapon "XMS" and _firemode == burst or auto : goto "jam"
anyway what can i do to actually detect what kind of fire ?
i also checked the com ref and couldnt find anything
-
? ((player hasWeapon "M16") or (player hasWeapon "XMS")) and ((_firemode == "burst") or (_firemode == "auto")) : goto "jam"
untested...
-
I imagine you would use the eventhandler to start a script that will check the relevant mode via.......select.
Possibly _this select 3
Planck
-
okay thanks ill have a go at these two ideas but just one thing does clicking the fire button once on burst mode result in triggering the fired eh 3 times or just once ?? same with auto ?
-
if i wanted to find out, i would create a global variable which is added to on each run of the event handler, and put a hint in the event handler which would display the value of the global variable....