CreateExplosion?
#10

What about this:

pawn Код:
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid, pX, pY, pZ);

for(new Float:eZ=pZ+5; eZ<=pZ+110; eZ++)
{
if(eZ==pZ+99)
{
CreateExplosion(pX, pY, eZ, 5, 60);
}
else if(eZ>=nZ+99)
{
new Float:randomizer=floatadd(floatdiv(Float:random(10), Float:random(10)), floatdiv(Float:random(10), Float:random(10)));
CreateExplosion(nX+randomizer, nY+randomizer, eZ+randomizer, 5, 7);
}
else
{
CreateExplosion(pX, pY, eZ, 5, 4);
}
}
Untested, might cause laggs, etc... but i think it's the way you want it to look. If it causes too hard laggs, just decimate the numbers a bit, so there will not be that much explosions, or put all into a timer, so the time between the explosions is a little larger. Have Fun.
Reply


Messages In This Thread
CreateExplosion? - by Andy_McKinley - 25.12.2009, 07:52
Re: CreateExplosion? - by Dark_Kostas - 25.12.2009, 08:20
Re: CreateExplosion? - by Andy_McKinley - 25.12.2009, 20:53
Re: CreateExplosion? - by FireFox_ - 25.12.2009, 21:20
Re: CreateExplosion? - by Correlli - 25.12.2009, 22:34
Re: CreateExplosion? - by Andy_McKinley - 26.12.2009, 07:55
Re: CreateExplosion? - by Abernethy - 26.12.2009, 07:59
Re: CreateExplosion? - by Dark_Kostas - 26.12.2009, 08:19
Re: CreateExplosion? - by Correlli - 26.12.2009, 12:10
Re: CreateExplosion? - by DeathOnaStick - 26.12.2009, 12:20

Forum Jump:


Users browsing this thread: 1 Guest(s)