CallAfterFrames

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender version 6.2.8.

Description

Executes a User Defined Function or an inline Lambda script after the specified amount of frames have elapsed in-game

Only runs in GameMode by default, or if runWhen is set to 0. If runWhen is set to 1, will also run in MenuMode. If it is set to 2, will also pause the callback while the main menu / pause menu / console menu MenuModes are open (new in 6.3.0).

Every queued call is removed when loading the game (GetGameLoaded), so they may need to be reset during then.

Arguments can be passed like Call to the function. If an arg is an array, then its lifetime will be extended until the callbacks have stopped.

Syntax

[help]
reference.CallAfterFrames frames:int udf:script runWhen:int{0} multi:arg(up to 15) 

See Also