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.
WeaponCtrSwitch(cnum, startstate, numstates, psprnum)
- 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)
No examples given.
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.