Home   Help Search Login Register  

Author Topic: wich kind of mode  (Read 776 times)

0 Members and 1 Guest are viewing this topic.

Offline 456820

  • Contributing Member
  • **
wich kind of mode
« 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

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:wich kind of mode
« Reply #1 on: 19 Jun 2005, 17:22:04 »
? ((player hasWeapon "M16") or (player hasWeapon "XMS")) and ((_firemode == "burst") or (_firemode == "auto")) : goto "jam"

untested...
« Last Edit: 19 Jun 2005, 17:22:36 by bedges »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:wich kind of mode
« Reply #2 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
I know a little about a lot, and a lot about a little.

Offline 456820

  • Contributing Member
  • **
Re:wich kind of mode
« Reply #3 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 ?

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:wich kind of mode
« Reply #4 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....