Home   Help Search Login Register  

Author Topic: Eventhandlers  (Read 485 times)

0 Members and 1 Guest are viewing this topic.

Offline rhysduk

  • Former Staff
  • ****
Eventhandlers
« on: 07 Jun 2004, 00:29:23 »
Hi guys,

I know how to use Eventhandlers to a certain ecxtent, but what i want to know is when a unit dies that has an Eventhandler attached to it, does this EH get deleted or not?

For example, a Vulcan has a "Hit" EH attached to it, when its destroyed and respawned, will the EH automatically be attached to this newly crate vulcan because it has the same name as the previous vulcan? Or do i have to assign a new eventhandler to it?

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

Offline Killswitch

  • Members
  • *
  • Peace, cheese and ArmA
Re:Eventhandlers
« Reply #1 on: 07 Jun 2004, 15:28:20 »
Yes, when a unit dies, the EH that was attached to it is "deleted".

This means that you have to addEventHandler the hit EH to each newly createVehicle:d Vulcan.

(Of course, vehicles that have EH:s defined in their config won't have this problem, since they have their EH:s inherently)

« Last Edit: 07 Jun 2004, 15:28:50 by Killswitch »

Offline rhysduk

  • Former Staff
  • ****
Re:Eventhandlers
« Reply #2 on: 07 Jun 2004, 22:54:45 »
Thanks Killswitch, much appreciated..

Topic to be left open.. more wuestion when i remember them  ::)

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)