Timer.
#1

Object don't moved. If use "SetTimer" object has moved.

Код HTML:
if(IsPlayerInRangeOfPoint(i, 14.0, 1810.02307, -1893.16748, 13.21320))
{
    SetTimer_("barrierspawn", 100, 3000, 0);
}
Код HTML:
forward barrierspawn();
public barrierspawn()
{
    MoveObject(bspawn, 1810.02307, -1893.16748, 13.21320, 0.05, 0, 90, 90);
    return 1;
}
Reply
#2

can u expalne little bit more? cuz i dont get it
Reply
#3

You should not use local functions for gates. Local functions should only be used only when necessary.

Код:
if(IsPlayerInRangeOfPoint(i, 14.0, 1810.02307, -1893.16748, 13.21320))
{
    MoveObject(bspawn, 1810.02307, -1893.16748, 13.21320, 0.05, 0, 90, 90);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)