Difference between revisions of "064B"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{OpCode | ini = 064B=6,%6d% %1h% %2d% %3d% %4d% %5h% | description = Creates a particle at a coordinate | p1 = Particle name | p2 = X-coordinate | p3 = ...)
 
Line 39: Line 39:
 
  0002: jump @CreateParticle
 
  0002: jump @CreateParticle
 
</source>
 
</source>
 +
 +
==See Also==
 +
[[Particle_(SA)|Particle SA]]
  
 
==Keywords==
 
==Keywords==
 
create, particle
 
create, particle

Revision as of 13:21, 25 October 2010

{{{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