WeaponCtrSwitch: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(Created page with '{{codepointer|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 difference)

Latest revision as of 17:05, 8 May 2011

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