31.03.2013, 23:55
If you mean you want to move all the objects created in ojb[x], do it like this:
And if you need different positions for the objects to move I recommend using a multidimensional array, like this:
I hope you understand what I mean.
Best regards,
Jesse
pawn Code:
for(new i = 0; i < sizeof(obj); i++)
{
MoveObject(obj[i], 0, 0, -50, 2.00);
}
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);
}
Best regards,
Jesse