stock te_create_explosion(position[3], sprite, scale = 10, framerate = 30, flags = TE_EXPLFLAG_NONE, receiver = 0, bool:reliable = true)
position | Position of the explosion |
sprite | The additive sprite index to use in the explosion |
scale | The scale of the sprite in the explosion (0 - 255) |
framerate | The frame rate to show the sprite at (0 - 255) |
flags | Explosion flags: TE_EXPLFLAG_NONE - default Half-Life explosion TE_EXPLFLAG_NOADDITIVE - sprite will be drawn opaque TE_EXPLFLAG_NODLIGHTS - don't render the dynamic lights TE_EXPLFLAG_NOSOUND - don't play the explosion sound TE_EXPLFLAG_NOPARTICLES - don't draw the particles |
receiver | Client index that will be able to see the explosion or 0 for all clients |
reliable | If true, the message will be sent via the reliable channel, otherwise it will use the unreliable one |
Creates an explosion.
A common sprite to use is "sprites/zerogxplode.spr"
Video preview of this and all other te_ stocks can be found here: https://youtu.be/szW-bSMPuyQ?t=43s
0 if "receiver" is non-zero and the client isn't connected, 1 otherwise
This documentation was automatically generated using pawn-docgen made by xPaw for AlliedMods.