if(key_ctrl == 1) { my.durum = saldir; } if(my.durum == saldir) { hareket_vektoru.x = 5*time_step; ent_animate(me, "attack", anim, ANM_CYCLE); ent_create("mermi.mdl", vector(me.x+2, me.y+5, me.z+13), mermi); }
action mermi_event() { wait(1); ent_remove(me); } action mermi() { my.emask |= ENABLE_IMPACT | ENABLE_BLOCK | ENABLE_ENTITY; my.event = mermi_event; my.pan = player.pan; my.tilt = player.tilt; while(1) { you = player; c_move(me, vector(60*time_step, 0, 0), nullvector, IGNORE_ME+IGNORE_YOU); wait(1); } }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de