SA-MP Forums Archive
Fire System Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Fire System Help (/showthread.php?tid=268113)



Fire System Help - The_J0ker - 11.07.2011

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?

/imageshack/img19/8651/gallery281.jpg
/imageshack/img97/4287/gallery284n.jpg


Re: Fire System Help - Cameltoe - 11.07.2011

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]);