Array object Move :P
#2

If you mean you want to move all the objects created in ojb[x], do it like this:

pawn Code:
for(new i = 0; i < sizeof(obj); i++)
    {
    MoveObject(obj[i], 0, 0, -50, 2.00);
    }
And if you need different positions for the objects to move I recommend using a multidimensional array, like this:
pawn Code:
new objpos[x][3] = {
{0.00, 0.00, -50.00},
{0.00, 0.00, -40.00},
};

for(new i = 0; i < sizeof(obj); i++)
    {
    MoveObject(obj[i], objpos[i][0], objpos[i][1], objpos[i][2], 2.00);
    }
I hope you understand what I mean.

Best regards,
Jesse
Reply


Messages In This Thread
Array object Move :P - by colonel-top - 31.03.2013, 23:33
Re: Array object Move :P - by jessejanssen - 31.03.2013, 23:55
Re: Array object Move :P - by Babul - 31.03.2013, 23:56

Forum Jump:


Users browsing this thread: 1 Guest(s)