Rope sliding, can it cause lag? (Timer)
#1

I had the idea to create a rope to slide down.

pawn Код:
public Slide(playerid)
{
    if(Sliding[playerid] == 1)
    {
    new Float:X;
    new Float:Y;
    new Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    SetPlayerPos(playerid, X, Y, Z - 2.00);
    SetTimerEx("Slide", 300, 0, "i", playerid);
    }
        return 1;
}
Came up with something like this.
Will this cause lagg with the timer?
Reply
#2

Try.
Reply
#3

Why you start a timer inside the timer?
You can just make it repeat and stop after x times it repeats.

It shouldnt cause lag as far as I see.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)