OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: max_killer_payne on 07 Jul 2003, 18:07:13

Title: Detecting if a unit shoots
Post by: max_killer_payne 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
Title: Re:Detecting if a unit shoots
Post by: _hammy_ 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"
Title: Re:Detecting if a unit shoots
Post by: max_killer_payne on 07 Jul 2003, 21:54:31
cheers HAMMY

Can u IM me foodstamps email on OFPNAM?
Title: Re:Detecting if a unit shoots
Post by: _hammy_ on 08 Jul 2003, 03:16:10
he already replyed to your thread giving his email....