Scripting/Squirrel/Functions/CreateExplosion

From Vice City Multiplayer
Revision as of 14:16, 7 March 2015 by Ysc3839 (talk | contribs)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

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

This page needs an example. We will try our best to complete the wiki as soon as possible.

Notes

Related Functions