hey guys, Simon again:
i have a Problem with removing a sprite entity in its own Action:
void act_some();
void ev_event();
void main(){
you = ent_create("file.tga", nullvector, act_some);
your.skill1 = "something";
}
void act_some(){
my.emask = ENABLE_SCAN;
my.event = ev_event;
}
void ev_event(){
if(Event_type == EVENT_SCAN)
ent_remove(me);
}
//just a part of my code - the true one is bigger
game starts, works fine, until the ent_remove then scknex engine says: "Invalid call in Event ev_event".
thanksfor your help! :-)
answers could also be in Germany (would be better)