Most efficient way of creating a 'fire' ? - 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: Most efficient way of creating a 'fire' ? (
/showthread.php?tid=232520)
Most efficient way of creating a 'fire' ? -
Antonio [G-RP] - 27.02.2011
I've experimented a few ways, with objects and explosions. Does anybody else have any input as to the best way to create a nice fire?
So far an explosion would be the best, most efficient way.
Re: Most efficient way of creating a 'fire' ? -
Mauzen - 27.02.2011
You can use the new particle objects, there are different kinds of fire as objects that you can simply create with CreateObject.
But they do not do any damage, as they are just objects. You would have to script this yourself (this will offer you LOTS of possibilities)
Re: Most efficient way of creating a 'fire' ? -
ifly4life - 27.02.2011
how about
Код:
if(strcmp(cmd, "/fire", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1 && Aduty[playerid] == 1)
{
GetPlayerPos(playerid,smokex,smokey,smokez);
CreateExplosion(smokex, smokey, smokez, 9, 15)
CreateDynamicObject(2780, smokex, smokey, smokez, -6,0,0,90);
}
return 1;
}
They have a certain explosion for fire, as i used
And the object is a Smoke machine
Re: Most efficient way of creating a 'fire' ? -
Antonio [G-RP] - 27.02.2011
The smoke machine is a good idea, and I already like the idea of the new particle fires. Thanks for the ideas, everybody.