Hi guys,
I want to make a small strategy game. To recognize if ye click on a model I tried to use event_click, but it doesn't work. Anybody know why??
function mouse_event()
{
while(1)
{
if (event_type == EVENT_CLICK)
{
beep();
ent_remove(me);
return;
}
wait(1);
}
}
action sound_on_click()
{
set(me,ENABLE_CLICK);
my.emask |= ENABLE_CLICK;
my.event=mouse_event;
}