how can i realize that an entity moves only for a few seconds by a pressed button or only a fixed distance? did someone have an idea or a code example for me?
var time = 0; .. if(!key_cul)time = 0; if(key_cul & time < 5)// 5 - is how many frames entity must go { c_move(me,vector(1,0,0), nullvector, GLIDE); //move entity time +=1; } wait(1); ...
The smaller the bug, the harder it is to kill. _________________________________________ Forklift DEMO (3dgs)