Scripting/Squirrel/Functions/CreateExplosion: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary |
|||
(6 intermediate revisions by 4 users not shown) | |||
Line 3: | Line 3: | ||
== Syntax == | == Syntax == | ||
1 | |||
<pre>CreateExplosion( world, type, pos, playerCaused, onGround )</pre> | <pre>CreateExplosion( world, type, pos, playerCaused, onGround )</pre> | ||
2 | |||
<pre>CreateExplosion( world, type, x, y, z, playerCaused, onGround )</pre> | |||
== Arguments == | == Arguments == | ||
1 | |||
* ''int'' '''world''' - The world ID | * ''int'' '''world''' - The world ID | ||
* ''int'' '''type''' - The | * ''int'' '''type''' - The [[Explosion_Types|Explosion Types]] | ||
* ''[[Scripting/Squirrel/Functions/Vector|Vector]]'' '''pos''' - The position of the explosion to be created | * ''[[Scripting/Squirrel/Functions/Vector|Vector]]'' '''pos''' - The position of the explosion to be created | ||
* ''int'' '''playerCaused''' - | * ''int'' '''playerCaused''' - the ID of the player to blame the explosion on, or -1 for no player | ||
* ''bool'' '''onGround''' - To be added | |||
2 | |||
* ''int'' '''world''' - The world ID | |||
* ''int'' '''type''' - The [[Explosion_Types|Explosion Types]] | |||
* ''float'' '''x''' - The x position of the explosion to be created | |||
* ''float'' '''y''' - The y position of the explosion to be created | |||
* ''float'' '''z''' - The z position of the explosion to be created | |||
* ''int'' '''playerCaused''' - the ID of the player to blame the explosion on, or -1 for no player | |||
* ''bool'' '''onGround''' - To be added | * ''bool'' '''onGround''' - To be added | ||
== Example == | == Example == | ||
<pre>CreateExplosion( 1, 7, 154.55, 159, 11.4584, -1, true );</pre> | |||
=== Notes === | === Notes === | ||
There are several types of Explosions you can find a list of them from [http://wiki.vc-mp.org/wiki/Explosion_Types here] | |||
== Related Functions == | == Related Functions == | ||
{{Scripting/Squirrel/Functions/Game_Functions}} | {{Scripting/Squirrel/Functions/Game_Functions}} | ||
[[Category:Scripting/Squirrel/Functions/Game_Functions]] |
Latest revision as of 18:02, 30 January 2017
This function will create an explosion at the given location.
Syntax
1
CreateExplosion( world, type, pos, playerCaused, onGround )
2
CreateExplosion( world, type, x, y, z, playerCaused, onGround )
Arguments
1
- int world - The world ID
- int type - The Explosion Types
- Vector pos - The position of the explosion to be created
- int playerCaused - the ID of the player to blame the explosion on, or -1 for no player
- bool onGround - To be added
2
- int world - The world ID
- int type - The Explosion Types
- float x - The x position of the explosion to be created
- float y - The y position of the explosion to be created
- float z - The z position of the explosion to be created
- int playerCaused - the ID of the player to blame the explosion on, or -1 for no player
- bool onGround - To be added
Example
CreateExplosion( 1, 7, 154.55, 159, 11.4584, -1, true );
Notes
There are several types of Explosions you can find a list of them from here