11.07.2011, 14:18
pawn Код:
enum posInfo
{
Float: x,
Float: y,
Float: z,
Float: rx,
Float: ry,
Float: rz,
}
new FirePositions[][posInfo] = {
{ 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000 } // Pos #1
};
new RandomLocation = random(sizeof(FirePositions));
CreateObject(FIREPARTICLE, FirePositions[RandomLocation][x], FirePositions[RandomLocation][y], FirePositions[RandomLocation][z], FirePositions[RandomLocation][rx], FirePositions[RandomLocation][ry], FirePositions[RandomLocation][rz]);
CreateObject(SMOKEPARTICLE, FirePositions[RandomLocation][x], FirePositions[RandomLocation][y], FirePositions[RandomLocation][z], FirePositions[RandomLocation][rx], FirePositions[RandomLocation][ry], FirePositions[RandomLocation][rz]);