CreateOwnedExplosion

From GT-MP
Jump to: navigation, search
CreateOwnedExplosion
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Creates an explosion with the given parameters. The difference between createOwnedExplosion and createExplosion is owned explosions do not damage the owner, however any fire/flames associated to the explosion will.


Syntax

API.createOwnedExplosion(Client owner, int explosionType, Vector3 position, float damageScale, int dimension = 0);

Required Arguments

  • owner: parameter input should be in Client type.
  • explosionType: parameter input should be in int type.
  • position: parameter input should be in Vector3 type.
  • damageScale: parameter input should be in float type.
  • dimension: parameter input should be in int type.

Usage example(s)

Example Description

API.createOwnedExplosion(Client owner, int explosionType, Vector3 position, float damageScale, int dimension);

References