CancelTimer - ScriptObject

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ScriptObject Script

Cancels the specified real-time timer on this script. Does nothing if that timer has already expired or doesn't exist.

Syntax[edit | edit source]

Function CancelTimer(int aiTimerID = 0) native

Parameters[edit | edit source]

  • aiTimerID: The ID of the real-time timer to cancel. The ID is unique per-script and will not conflict with game-time timers.
    • Default: 0

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Cancel pending timer 0 on this script
CancelTimer()


; Cancel pending timer 99 on this script
CancelTimer(99)

See Also[edit | edit source]