064F

From GTAMods Wiki
Revision as of 17:07, 28 January 2016 by Spaceeinstein (talk | contribs)
Jump to navigation Jump to search

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