Background for Starfield
Member of the Game script
voidfunctionPassTime(intaiHours)NativeGlobal

Description

Wiki Description

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" Global as a replacement.

Passes the specified number of hours as if the Player used the 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.

Documentation Comment

Pass time as if the player has waited the given number of hours.


Parameters

  1. intaiHours

    CK Wiki Description

    The number of hours to pass


Examples

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

Auto-Generated Example

int myInt__aiHours

Game.PassTime(myInt__aiHours)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.