Checking if Object is at the given position
#1

I have those 2 commands

pawn Код:
dcmd_actest(playerid, params[])
{
    #pragma unused playerid
    #pragma unused params
    test = CreateObject(16442, -1194.8014, -1061.5055, 129.2188, 0, 0, 90);
}

dcmd_actest1(playerid, params[])
{
    #pragma unused playerid
    #pragma unused params
    MoveObject(test, -1191.5671, -954.3043, 129.2119, 2.0);
}
Now how can i check if the object test is at ? I know to use a timer and GetObjectPos, but how to format it.. (if its at the coordinates -1194.8014, -1061.5055, 129.2188 then do something")

Can somebody help me?

Thnx
Reply


Messages In This Thread
Checking if Object is at the given position - by Robbin237 - 13.04.2009, 13:58
Re: Checking if Object is at the given position - by ICECOLDKILLAK8 - 13.04.2009, 13:59
Re: Checking if Object is at the given position - by Robbin237 - 13.04.2009, 14:02
Re: Checking if Object is at the given position - by ICECOLDKILLAK8 - 13.04.2009, 14:02
Re: Checking if Object is at the given position - by Robbin237 - 13.04.2009, 14:03
Re: Checking if Object is at the given position - by ICECOLDKILLAK8 - 13.04.2009, 14:06

Forum Jump:


Users browsing this thread: 1 Guest(s)