Home   Help Search Login Register  

Author Topic: Shot Fired  (Read 490 times)

0 Members and 1 Guest are viewing this topic.

shadow99

  • Guest
Shot Fired
« on: 26 Oct 2004, 06:48:58 »
Just a quick question. How do I run a check/condition for the player firing a shot?

Offline Blanco

  • Former Staff
  • ****
Re:Shot Fired
« Reply #1 on: 26 Oct 2004, 06:50:04 »
...with a Eventhandler "fired"

_this select 0 : who fired ;
_this select 1 : with what weapon ;
_this select 2 : with what muzzle (your M16, or M203 ?)
_this select 3 : mode ? (either single, or burst, or auto)
_this select 4 : the type of ammo used.






« Last Edit: 26 Oct 2004, 06:52:35 by Blanco »
Search or search or search before you ask.

shadow99

  • Guest
Re:Shot Fired
« Reply #2 on: 26 Oct 2004, 07:09:21 »
Thanks very much Blanco.  :)

Offline Vortrog

  • Members
  • *
  • Ski'in, Fish'in, Shoot'in, OFP'in
    • Vortrog's Lair
Re:Shot Fired
« Reply #3 on: 27 Oct 2004, 00:05:56 »
Lets take this a step further though.
Using WGL Mod, Can someone confirm via condition how you would check that an m224 mortar was fired in a mission? Im going to try to work it out from this great example, however Id appreciate feedback if someone else had had experience with this.
Considering you can hit a target from 2-4km away, this is quite critical in making the AI react to a base attack. And note, this is a MP mission where I expect p1 (player 1) to be the mortar gunner.
It may be better to detect a mortar round landing in an area...but is this possible?
« Last Edit: 27 Oct 2004, 00:15:59 by Vortrog »