CreateObject
#1

Hello!

I want to do this, if i have 3 object maked.
pawn Код:
new Object[3];
Object[0] = CreateObject(3409, x, y, z, - 1.3, 0.0, 0.0);
Object[1] = CreateObject(3409, x, y, z, - 1.3, 0.0, 0.0);
Object[2] = CreateObject(3409, x, y, z, - 1.3, 0.0, 0.0);
Then if i touch some object.
pawn Код:
public removeObjects()
{
    foreach (new i : Player)
    {
        if(IsPlayerInRangeOfPoint(i, 1, x, y, z)) // I dont know what do add here.
        {
            DestroyObject(Object[something here]); // And here.
        }
    }
    return 1;
}
I don't understand how do make this.
Need using loops or something?
Reply


Messages In This Thread
CreateObject - by finelaq - 10.01.2015, 18:16
Re: CreateObject - by DavidSparks - 10.01.2015, 18:40
Re: CreateObject - by Anuris - 10.01.2015, 18:43
Re: CreateObject - by finelaq - 10.01.2015, 18:50
Re: CreateObject - by finelaq - 11.01.2015, 08:48

Forum Jump:


Users browsing this thread: 1 Guest(s)