OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Laitex on 19 Jan 2003, 10:52:17

Title: Dammage detection in Event Handlers
Post by: Laitex 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? ???