Home   Help Search Login Register  

Author Topic: Dammage detection in Event Handlers  (Read 563 times)

0 Members and 1 Guest are viewing this topic.

Laitex

  • Guest
Dammage detection in Event Handlers
« on: 19 Jan 2003, 10:52:17 »
I have a question about Event Handlers.

I want to know whether an unit has been attaked or not, and if the unit has an attack, I want to play an alarm sound. Event Handlers has some option, "Hit" and "Dammaged" and I tyr both of them. but to no avail.

class fighter : plane
{
 class EventHandlers
 {
   Hit="_this select 0 vehicleRadio ""DammageWarning""";
   dammaged="_this select 0 vehicleRadio ""DammageWarning""";
 };
};

Is this a correct usage? ???