Mod:Creation Kit/PassTime - Game

Member of: Mod:Creation Kit/Game Script

Warning: This function is not working as intended. Instead of passing the specified number of hours, this function always passes 100 in-game hours. The following documentation describes the intended functionality, not the actual behavior! Consider incrementing the "GameHour" Mod:Creation Kit/Global as a replacement.

Passes the specified number of hours as if the Mod:Creation Kit/Player used the Mod:Creation Kit/SitWaitMenu. This runs full updates of AI so if the number of hours is large enough, this can produce a noticeable hitch best hidden behind a menu.

Syntax
Function PassTime(int aiHours) native global

Parameters

 * aiHours: The number of hours to pass

Return Value
None

Examples
int iwait = 24 - GameHour PassTime(iwait)
 * make player wait until midnight