Im used to work with events in C-Script. now i have started to code C-Lite.
and what I see. this code wont work. I have read the Migration Guide but i didnt find any useful information there to anserw my question.
Do you got any suggestion?
Code:
function trigger_event
{
if (event_type == EVENT_TRIGGER)
{
ent_playsound(me,whamm,50);
}
// etc. ...
}
action door
{
...
my.trigger_range = 100;
my.ENABLE_TRIGGER = ON;
my.event = trigger_event;
...
}
Thanks in forehand