WeaponJump

From Eternity Wiki
Revision as of 13:54, 24 October 2024 by Printz (talk | contribs) (Created page with "{{Codepointer|description=Random frame change (jump) for weapon frames (not actor frames). |usage='''A_WeaponJump'''(''frame'', ''chance'') |parameters= *''frame'': Frame to jump to if random chance passes *''chance'': chance out of 256 that it will switch to ''frame'' |notes=MBF21 introduced this as a weapon frame usable version of RandomJump, which only works on actor frames. Eternity already has Jump from ZDoom which is flexible with both actor and weapon fram...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

Random frame change (jump) for weapon frames (not actor frames).

Usage

A_WeaponJump(frame, chance)

Parameters

  • frame: Frame to jump to if random chance passes
  • chance: chance out of 256 that it will switch to frame

Examples

No examples given.

Notes

MBF21 introduced this as a weapon frame usable version of RandomJump, which only works on actor frames. Eternity already has Jump from ZDoom which is flexible with both actor and weapon frames.

See also