createLoopedParticleEffectOnEntity

From GTA Network Wiki
Jump to: navigation, search

createLoopedParticleEffectOnEntity
Server-Side Function

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

Creates a looped Particle effect on an entity.

This function is similar to createParticleEffectOnEntity but is looped and returns a NetHandle.

Syntax

API.createLoopedParticleEffectOnEntity(string ptfxLib, string ptfxName, NetHandle entity, Vector3 offset, Vector3 rotation, float scale, int bone = -1, int dimension = 0);

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, Default value: -1
  • dimension: parameter input should be in int type, Default value: 0

NOTE: This function returns data in NetHandle type.

Usage example

   NetHandle myEffect = API.createLoopedParticleEffectOnEntity(ptfxLib, ptfxName, entity, offset, rotation, scale);

Changelog

Version Description
1.0 Release.

References