RandomJump: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
*'''misc2''': chance out of 256 to execute the jump | *'''misc2''': chance out of 256 to execute the jump | ||
This codepointer causes the current frame to jump ''instantly'' to another frame (set by '''misc1''') if chance '''misc2'''/256 is passed. | This codepointer causes the current frame to jump ''instantly'' to another frame (set by '''misc1''') if chance '''misc2'''/256 is passed. Otherwise, it will wait the normal amount of '''tics''' before going to '''nextframe'''. | ||
==See also== | ==See also== | ||
*[[List of codepointers]] | *[[List of codepointers]] | ||
[[Category:Codepointers]] | [[Category:Codepointers]] |
Revision as of 09:18, 23 May 2010
Arguments:
- misc1: frame mnemonic or frame dehacked number to jump to
- misc2: chance out of 256 to execute the jump
This codepointer causes the current frame to jump instantly to another frame (set by misc1) if chance misc2/256 is passed. Otherwise, it will wait the normal amount of tics before going to nextframe.