action playerAct() { my.emask |= ENABLE_DISCONNECT; my.smask |= NOSEND_FRAME; my.event = player_events; // << ! c_setminmax(my); wait(-.3); ent_sendnow(my); wait(-.3); set(me, SHADOW); movePl(); }
void player_events() { if (event_type == EVENT_DISCONNECT) { ent_remove(player); // can sty this way, but better with the "ME" pointer } }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de