A_SetTics

From ZDoom Wiki
Jump to: navigation, search

A_SetTics(int duration) (New from 2.7.1)

Changes the current duration of the tic the action function is called.

Examples

A weird, slow imp with a lot of health who becomes faster when hurt.

actor WeirdImp : DoomImp {
    Health 300
    States {
    See:
        TROO A 6 A_SetTics (health / 20)
        TROO A 0 A_Chase
        TROO B 6 A_SetTics (health / 20)
        TROO B 0 A_Chase
        TROO C 6 A_SetTics (health / 20)
        TROO C 0 A_Chase
        TROO D 6 A_SetTics (health / 20)
        TROO D 0 A_Chase
        Loop
    }
}