Originally Posted By: Pappenheimer
... There shouldn't be any wait(1); in an event function. I guess those are the reason for the crash. ...


This is not true.
You can have wait(1) in your event functions.
To avoid crashes you should set the wait(1) before the ent_remove.
This info was posted by JCL long time ago and I used it many times this way without crashes.

And here I found the description in the manual:
Quote:

If for some reason the event function must perform such 'critical instructions', they must be preceded by a wait(1) for delaying them to the next frame. Then it's safe.


Last edited by HPW; 01/12/09 09:48.

Evil Blood (v. 0.52) RPG
Commport.de (Social Network Community)