OnExplosion

From NPC for VCMP 0.4 Servers
Revision as of 16:49, 3 May 2023 by Habi (talk | contribs) (Created page with "<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;"> This function was added in v1.6 beta 4 and will not work on previous versions. </poem> {{Welcome| desc=This event will be called when server creates an explosion.| params=<source lang="lua">( type, position, playerCaused, isOnGround )</source> ::type : The type (integer 0-12,..) of the explosion. ::position : The Vector position where the explosion happened. ::playerCaused : The ID of the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function was added in v1.6 beta 4 and will not work on previous versions.


Description:
This event will be called when server creates an explosion.


Parameters:

( type, position, playerCaused, isOnGround )
type : The type (integer 0-12,..) of the explosion.
position : The Vector position where the explosion happened.
playerCaused : The ID of the player who is responsible
isOnGround : true, if on ground; false, otherwise.


Return Values:
This function does not return any specific values.



Related Functions

The following functions may be helpful as they relate to this function in one way or another.