Circular Explosion
#4

Quote:
Originally Posted by Kindred
Посмотреть сообщение
This shouldn't even be hard to make. I just am not good with coordinates.

I tried doing this, but like I said, not good with coordinates.

pawn Код:
stock CreateCircularExplosion(Float:PosX, Float:PosY, Float:PosZ, Range)
{
    CreateExplosion(PosX + Range, PosY, PosZ, 0, 10.0);
    CreateExplosion(PosX, PosY + Range, PosZ, 0, 10.0);
    CreateExplosion(PosX - Range, PosY, PosZ, 0, 10.0);
    CreateExplosion(PosX, PosY - Range, PosZ, 0, 10.0);
    CreateExplosion(PosX + Range - 2, PosY, PosZ, 0, 10.0);
    CreateExplosion(PosX, PosY + Range - 2, PosZ, 0, 10.0);
    CreateExplosion(PosX - Range - 2, PosY, PosZ, 0, 10.0);
    CreateExplosion(PosX, PosY - Range - 2, PosZ, 0, 10.0);
    CreateExplosion(PosX + Range, PosY, PosZ, 0, 10.0);
    CreateExplosion(PosX + Range, PosY, PosZ, 0, 10.0);
    CreateExplosion(PosX + Range, PosY, PosZ, 0, 10.0);
    CreateExplosion(PosX + Range, PosY, PosZ, 0, 10.0);
    return 1;
}
Try doing something like that to be able to script this.
Not bad. Thanks for making it for me. But yeah brother. Still isnt the same thing i required.

Your code creates explosions at 4 major points of the circle. I want the function to create explosion at every point of the circle when the function will be called.

I hope you understand , thanks for making this though!
Reply


Messages In This Thread
Circular Explosion - by Ballu Miaa - 23.07.2012, 07:39
Re: Circular Explosion - by Cjgogo - 23.07.2012, 08:06
Re: Circular Explosion - by Kindred - 23.07.2012, 08:09
Re: Circular Explosion - by Ballu Miaa - 23.07.2012, 08:21
Re: Circular Explosion - by Babul - 23.07.2012, 08:58
Re: Circular Explosion - by Ballu Miaa - 23.11.2013, 17:49
Re: Circular Explosion - by Babul - 23.11.2013, 23:20
Re: Circular Explosion - by dudaefj - 29.12.2013, 17:42
Re: Circular Explosion - by Ballu Miaa - 30.12.2013, 02:47

Forum Jump:


Users browsing this thread: 1 Guest(s)