Main Page
News
History
Limitations
Graphics
Music
Levels
Gameplay
Now Browsing
Links
Download

ClearFlags

        CLEARFLAGS                Flags

Sometimes during the lifetime of a baddie, you need to change some of the system flags. For example, what if you needed to make him invincable for a second while he moved around? To do that you would need to set the NOSHOOT flag, then clear it again once he becomes vulnerable. With SetFlags and ToggleFlags, this command allows you to alter the objects flags while the path is running.


Example: a no-war moment.

A simple example of ClearFlags. This could obvoiously be altered to Not fire:

SimpleFire:
        PFOR 30
                MOVE -2,0
        PNEXT
        ClearFlags Fire        ; Stop firing
        PFOR 90
                MOVE -2,0
        PNEXT
        KillClip

See also:
SetFlags
ToggleFlags
Fire
KillClip
NoCollision
NoShoot
 

Main Table