CreateProjectile

From GTA Network Wiki
Jump to: navigation, search

CreateProjectile
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Function Description

Syntax

void NAPI.Explosion.CreateProjectile(WeaponHash weapon, Vector3 start, Vector3 target, int damage, float speed = -1, uint dimension = NAPI.GlobalDimension);

Required Arguments

  • weapon: parameter input should be in WeaponHash type.
  • start: parameter input should be in Vector3 type.
  • target: parameter input should be in Vector3 type.
  • damage: parameter input should be in int type.

Optional Arguments

  • speed: parameter input should be in float type.
  • dimension: parameter input should be in uint type.


Usage example(s)

Example Description

NAPI.Explosion.CreateProjectile(weapon, start, target, damage);

Changelog

Version Description
1.0 Release.

References