I've been trying to work with my mouse i.e. clicking on entities, but even something simple like:
#include <acknex.h>
#include <default.c>
function clickE(){
if(event_type == EVENT_CLICK){
sys_exit("");
}
}
action clickF(){
my.emask |= ENABLE_CLICK;
my.event = clickE;
c_updatehull(me,1);
}
function main(){
level_load(NULL);
wait(2);
ent_create("cube.mdl",vector(50,0,0),clickF);
}
it just doesn't work. I click the cube but nothing happens. Any solutions?