InRange explosion
#6

You can use CreateDynamicSphere. (You'll need Incognito's streamer plugin.)

pawn Код:
new explosionarea;

public OnGameModeInit() {
    explosionarea = CreateDynamicSphere(explosion x, explosion y, explosion z, 10.0);
    return 1;
}

public OnPlayerEnterDynamicArea(playerid, areaid) {
    if(areaid == explosionarea) {
        // things & stuff
        CreateExplosion(explosion x, explosion y, explosion z, type, radius);
    }
    return 1;
}
Reply


Messages In This Thread
InRange explosion - by Eugene. - 05.10.2013, 11:08
Re: InRange explosion - by Dragonsaurus - 05.10.2013, 11:15
Re: InRange explosion - by JimmyCh - 05.10.2013, 11:17
Re: InRange explosion - by RajatPawar - 05.10.2013, 11:19
Re: InRange explosion - by Eugene. - 05.10.2013, 14:58
Re: InRange explosion - by mendax - 05.10.2013, 15:06

Forum Jump:


Users browsing this thread: 1 Guest(s)