Scripting/Server/Functions/CreateExplosion
Explosion on every client. type is clamped to 0-12.
Syntax
CreateExplosion(pos, type)CreateExplosion(x, y, z, type)Arguments
- Vector pos
- int type –
typeis clamped to 0-12. - float x
- float y
- float z
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "createexplosion" )
{
CreateExplosion( player.Pos, 0 );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- CreateVehicle
- CreateObject
- CreatePickup
- CreateWeaponPickup
- CreateSphere
- CreateClientSphere
- CreateCheckpoint
- CreateClientCheckpoint
- FindCheckpoint
- GetCheckpointCount
- CreateBlip
- CreateClientBlip
Section: Creating world entities
Categories: Server functions | Creating world entities