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?


Bet you don't know where Taiwan is lol.

"The Lord is my light and my salvation..." Psm 27:1