WeaponCtrSwitch

From Eternity Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

This powerful codepointer can branch to one of N states depending on the value of the indicated counter. If the entire indicated frame set is not valid, no actions will be taken.

Usage

WeaponCtrSwitch(cnum, startstate, numstates, psprnum)

Parameters

  • cnum: counter # to use.
  • startstate: First frame in consecutive set.
  • numstates: Number of frames in consecutive set.
  • psprnum: type of weapon overlay to affect (weapon or flash)

Examples

No examples given.

Notes

This will switch the current frame of either the main weapon or gunflash overlay to startstate + contents of cnum. The target frames have to be written in proper order in the EDF file for this codepointer to work correctly.

See also