CreateParticleEffectOnEntity

From GTA Network Wiki
Jump to: navigation, search

CreateParticleEffectOnEntity
Server-Side Function

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

Creates a Particle effect on an entity.

This function is similar to CreateLoopedParticleEffectOnEntity but isn't looped so a ParticleEffect isn't returned.

Syntax

void NAPI.Particle.CreateParticleEffectOnEntity(string ptfxLib, string ptfxName, NetHandle entity, Vector3 offset, Vector3 rotation, float scale [, int boneIndex = -1, uint dimension = NAPI.GlobalDimension ]);

Required Arguments

  • ptfxLib: parameter input should be in string type.
  • ptfxName: parameter input should be in string type.
  • entity: parameter input should be in NetHandle type.
  • offset: parameter input should be in Vector3 type.
  • rotation: parameter input should be in Vector3 type.
  • scale: parameter input should be in float type.

Optional Arguments

  • bone: parameter input should be in int type.'
  • dimension: parameter input should be in uint type.

Usage example

NAPI.Particle.CreateParticleEffectOnEntity(ptfxLib, ptfxName, entity, offset, rotation, scale);

Changelog

Version Description
1.0 Release.

References