IsObjectInArea
#5

Quote:
Originally Posted by ғαιιοцт
Посмотреть сообщение
when you create an object at 0.0 0.0 0.0
then you move the object (shoot at it so the football moves; or whatever other way)
and then do GetObjectPos
it will still return 0.0 0.0 0.0
Oh.. Well I got this:

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & 1) // The fire button
    {
        new Float:X, Float:Y, Float:Z, Float:X3, Float:Y3;
        GetObjectPos(Football, X, Y, Z);
        GetXYInFrontOfPlayer(playerid, X3, Y3, 10.0);

        if(PlayerToPoint(5.0, playerid, X, Y, Z))
        {
            MoveObject(Football, X3, Y3, Z, 15);
        }
    }
    return 1;
}
So I don't think thats the problem?
Reply


Messages In This Thread
IsObjectInArea - by rbN. - 25.08.2010, 08:34
Re: IsObjectInArea - by ғαιιοцт - 25.08.2010, 08:47
Re: IsObjectInArea - by rbN. - 25.08.2010, 08:50
Re: IsObjectInArea - by ғαιιοцт - 25.08.2010, 08:54
Re: IsObjectInArea - by rbN. - 25.08.2010, 08:59
Re: IsObjectInArea - by ғαιιοцт - 25.08.2010, 09:52
Re: IsObjectInArea - by rbN. - 25.08.2010, 10:24
Re: IsObjectInArea - by rbN. - 25.08.2010, 11:03
Re: IsObjectInArea - by ғαιιοцт - 25.08.2010, 11:17

Forum Jump:


Users browsing this thread: 1 Guest(s)