Timer !
#1

how do timer moving objects?

can explain me ?
Reply
#2

can help me ?
Reply
#3

No.. and stop bumping crazy noob.
Reply
#4

This :



pawn Код:
//on top of script
new moveobjectid;
pawn Код:
//under gamemodeinit

moveobjectid = CreateObject(..... . ...................);
then on top of script


pawn Код:
forward MoveTimer(playerid);
then
anywhere in the script just not under any callback
pawn Код:
public MoveTimer(playerid);
{
       MovePlayerObject(playerid, moveobjectid,Float:X, Float:Y, Float:Z, 10.0);//10.0 is speed in milisecs
}
then
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        SetTimerEx("MoveTimer",timeinmiliseconds,0,"d",playerid);
        return 1;
    }
    return 0;
}
]]
Reply
#5

but I was wondering how to make the object move to two places! for example up and down!
Reply
#6

can help me aguen ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)