Difference between revisions of "064F"

From GTAMods Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 064F=1, %1d%
+
| games      = {{Icon|SA}}
| description = Releases a [[Particle_(SA)|particle]] from memory and makes it visible.
+
| command    = PLAY_AND_KILL_FX_SYSTEM
| p1          = Existing particle handle
+
| description = Makes the [[Particle (SA)|particle]] visible and marks it as no longer needed
| game        = [[San Andreas]]
+
| syntax1    = 064F: remove_references_to_particle [''particle handle'']
 +
| p1t        = [''particle handle'']
 +
| p1d        = The handle of the particle
 
}}
 
}}
 +
 
This opcode releases a particle from memory and makes it visible.  
 
This opcode releases a particle from memory and makes it visible.  
  
== Sanny Builder example ==
+
== Example ==
  
<source lang="scm">064F: remove_references_to_particle 167@ </source>
+
That example using [[CLEO]] creates an particle at player's location by pressing Z.
 
+
<syntaxhighlight lang="scm">
 
 
==Cleo Example==
 
 
 
That example creates an particle at player's location by pressing Z.
 
<source lang="scm">
 
 
{$CLEO .cs}
 
{$CLEO .cs}
  
Line 30: Line 28:
 
064F: make_temp_particle_visible_and_remove_references 0@ //make the particle visible and remove references  
 
064F: make_temp_particle_visible_and_remove_references 0@ //make the particle visible and remove references  
 
0001: wait  500 ms
 
0001: wait  500 ms
0002: jump @NONAME_01 </source>
+
0002: jump @NONAME_01
 
+
</syntaxhighlight>
==Keywords==
 
particle, visible, free memory
 
  
==See also==
+
== Keywords ==
* [[Particle_(SA)|Particle (SA)]]
+
particle, visible, free memory

Revision as of 17:07, 28 January 2016

San Andreas PLAY_AND_KILL_FX_SYSTEM


Description
Makes the particle visible and marks it as no longer needed
Syntax
064F: remove_references_to_particle [particle handle]
Parameter
[particle handle]
The handle of the particle

This opcode releases a particle from memory and makes it visible.

Example

That example using CLEO creates an particle at player's location by pressing Z.

{$CLEO .cs}

0000: NOP

:NONAME_01
0001: wait  0 ms
if and
0256: player $PLAYER_CHAR defined
0AB0:   key_pressed 90 // Z or z
004D: jump_if_false @NONAME_01
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR offset 0.0 5.0  1.0 //store player coords 
064B: 0@ = create_particle "flame" at 1@ 2@ 3@ type 4 //create the particle 
064F: make_temp_particle_visible_and_remove_references 0@ //make the particle visible and remove references 
0001: wait  500 ms
0002: jump @NONAME_01

Keywords

particle, visible, free memory