Jump

From Eternity Wiki
Revision as of 08:59, 4 March 2012 by Printz (talk | contribs)
Jump to navigationJump to search

Jump works in the same manner as RandomJump, executing an instant switch to another frame if a randomness test passes. The usage is as follows:

Jump(chance, state)

'chance' is the probability out of 255 that the current frame will be set to 'state'

This codepointer was added in Eternity because RandomJump uses the misc1 and misc2 fields, incompatible with DECORATE. In addition, the A_Jump term is also used in ZDoom's original DECORATE implementation, making the porting of ZDoom DECORATE actors into Eternity quicker. Note that the order of arguments is reversed from RandomJump.