064B

From GTAMods Wiki
Revision as of 13:21, 25 October 2010 by Bnb (talk | contribs)
Jump to navigation Jump to search

{{{games}}}


Description
Creates a particle at a coordinate
Syntax
{{{syntax1}}}
Parameter

This creates a particle at a coordinate. It requires opcode 064C in order for it to be visible. Note that the sixth parameter is placed in the beginning instead of at the end.

Sanny Builder example:

064B: 0@ = create_particle "BLOOD_HELI" at 0.0 0.0 0.0 type 1

Note

The above format is more commonly used. The actual format of this opcode is in order:
064B=6,%1h% %2d% %3d% %4d% %5h% %6d%
The format to use depends on which INI file you use.

Examples

Each particle has its own properties. These examples will show you one particle for example.

Creating a simple particle. This particle will be temporary but some particles are permanent.

 :CreateParticle
 064B: 0@ = create_particle "BLOOD_HELI" at 0.0 0.0 0.0 type 1
 064C: make_particle 0@ visible
 064F: remove_references_to_particle 0@
 004E: end_thread

Creating a particle with looping animation. Some particles are set to loop already so this is not needed.

 :CreateParticle
 0650: destroy_particle 0@
 0001: wait 250 ms
 064B: 0@ = create_particle "BLOOD_HELI" at 0.0 0.0 0.0 type 1
 064C: make_particle 0@ visible
 0002: jump @CreateParticle

See Also

Particle SA

Keywords

create, particle