Enabling player to move after MoveObject
#1

Hey guys.

I'm moving like 4 objects and i'm stopping the player from moving until it's finished. How would i get around that?

Here's my current code(btw this filterscript will be released when done):

pawn Код:
SendClientMessage(playerid, COLOR_GREEN, "Locking position");
            GetPlayerPos(playerid, x, y, z);
            GetPlayerFacingAngle(playerid, angle);
            GetXYInDirectionOfPosition(angle, x, y, 5);
            plantone = CreateObject(3409, x, y, z-3, 0, 0, 0);
            MoveObject(plantone, x, y, z-2, 0.1);
            planttwo = CreateObject(3409, x, y, z-2, 0, 0, 0);
            MoveObject(planttwo, x, y, z-1, 0.1);
            plantthree = CreateObject(3409, x, y, z-1, 0, 0, 0);
            MoveObject(plantthree, x, y, z, 0.1);
            plantfour = CreateObject(3409, x, y, z,0, 0, 0);
            MoveObject(plantfour, x, y, z+1, 0.1);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)