hey guys, Simon again:

i have a Problem with removing a sprite entity in its own Action:
Code:
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)

Last edited by Simon_Schwitzky; 03/11/14 15:33.

Die Menschen, die verrückt genug sind zu sagen, dass sie die Welt verändern werden, sind diejenigen, die es tuen!
-Steve Jobs