Przejdź do głównej zawartości

CreateExplosion

Description

Create an explosion at the specified coordinates.

NameDescription
Float:xThe X coordinate of the explosion.
Float:yThe Y coordinate of the explosion.
Float:zThe Z coordinate of the explosion.
typeThe type of the explosion.
Float:radiusThe radius of the explosion.

Returns

This function always returns 1, even when the explosion type and/or radius values are invalid.

Examples

public OnPlayerEnterCheckpoint(playerid)
{
// Get the player's position
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);

// Create an explosion at the player's position
CreateExplosion(x, y, z, 12, 10.0);

return 1;
}

Notes

wskazówka

There is a limit as to how many explosions can be seen at once by a player. This is roughly 10.

See Also