thanks for your explanation, i will read it a second time :y

+ i know im bad, nothing new laugh

btw i need 2 events because i'm trying to do something but im confused so i probably do nonsense things :s

re-edit : i think u would surely cry at the view of my code because its massively bad laugh (maybe u already cry at the view of my english :y)

re-edit : thanks for your post, it helped me to understand some things.

re-edit : theliam u was right :y

re-edit : last question if anyone pass by here :

now all work when the player scans the entity, but one problem is left :
when the player stop to scan the entity (after have scanned it) i want to call another function, but its more difficult than this and i dunno how to do it for now --

for information, i'm trying to make an 'emo' appears above the entity for show that the player can talk to it. (like in classic rpg)

edit :

i did it with
Quote:
while (event_type == EVENT_SCAN)
{
wait(1);
}
var=0;


so, clear.

complete code :

Quote:
function bide_event()
{
emoon=1;
show_panels();
while (event_type == EVENT_SCAN)
{
wait(1);
}
emoon=0;
}

action bide()
{
my.event=bide_event;my.enable_scan=on;
}


Last edited by ayks; 09/07/10 23:49.