OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 19 Jun 2005, 17:10:12

Title: wich kind of mode
Post 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
Title: Re:wich kind of mode
Post by: bedges on 19 Jun 2005, 17:22:04
? ((player hasWeapon "M16") or (player hasWeapon "XMS")) and ((_firemode == "burst") or (_firemode == "auto")) : goto "jam"

untested...
Title: Re:wich kind of mode
Post by: Planck on 19 Jun 2005, 17:22:24
I imagine you would use the eventhandler to start a script that will check the relevant mode via.......select.

Possibly _this select 3


Planck
Title: Re:wich kind of mode
Post by: 456820 on 19 Jun 2005, 18:18:49
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 ?
Title: Re:wich kind of mode
Post by: bedges on 19 Jun 2005, 19:03:55
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....