I need some help on creating a fire system like this, i understand you need a timer to set off the fire at different locations but i don't understand how to make them spawn at different locations such the fire particles and smoke. Am i meant to group them or something else?
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]);