064F

From GTAMods Wiki
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

Example

The following example using Sanny Builder will create a particle effect at the player's location while the Z key is pressed.

while true
    wait 0
    if
        0256:   player $PLAYER_CHAR defined
    then
        if
            0AB0:   key_pressed 90  // Z
        then
            04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR offset 0.0 5.0 1.0
            064B: 0@ = create_particle "flame" at 1@ 2@ 3@ type 4 
            064F: make_temp_particle_visible_and_remove_references 0@ 
            wait 500 ms
        end
    end
end

Keywords

particle, visible, kill, fx, system