thank you Fenriswolf for the answer I putted the code after ent_move function and it works great now.