Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Detecting if a unit shoots  (Read 806 times)

0 Members and 1 Guest are viewing this topic.

max_killer_payne

  • Guest
Detecting if a unit shoots
« on: 07 Jul 2003, 18:07:13 »
I am making a 'Nam mission and when one of the players squad or the player shoots, mortars and artillery are called down on the players position I used this:

player AddEventHandler ["Fired","{mortar DoFire player}"]

 ???  I don't get an error message just doesent work, the mortar doesent fire. It might be just the behaviour of the mortar I dunno

_hammy_

  • Guest
Re:Detecting if a unit shoots
« Reply #1 on: 07 Jul 2003, 19:55:14 »
try this:

player AddEventHandler ["Fired",{mortar DoFire player}]

also make sure that the morter is accually named "mortar"

max_killer_payne

  • Guest
Re:Detecting if a unit shoots
« Reply #2 on: 07 Jul 2003, 21:54:31 »
cheers HAMMY

Can u IM me foodstamps email on OFPNAM?

_hammy_

  • Guest
Re:Detecting if a unit shoots
« Reply #3 on: 08 Jul 2003, 03:16:10 »
he already replyed to your thread giving his email....