Difference between revisions of "064F"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{OpCode | {{OpCode | ||
− | | | + | | games = {{Icon|SA}} |
− | | description = | + | | command = PLAY_AND_KILL_FX_SYSTEM |
− | | | + | | description = Makes the [[Particle (SA)|particle]] visible and marks it as no longer needed |
− | | | + | | 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. | ||
− | == | + | == Example == |
− | + | That example using [[CLEO]] creates an particle at player's location by pressing Z. | |
− | + | <syntaxhighlight lang="scm"> | |
− | |||
− | |||
− | |||
− | That example creates an particle at player's location by pressing Z. | ||
− | < | ||
{$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 </ | + | 0002: jump @NONAME_01 |
− | + | </syntaxhighlight> | |
− | |||
− | |||
− | == | + | == Keywords == |
− | + | particle, visible, free memory |
Revision as of 17:07, 28 January 2016
- 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