Difference between revisions of "PassTime - Game"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Iceburg333
(Created page with "Category:Scripting Category:Papyrus '''Member of:''' Game Script Passes the specified number of hours as if the player used the wait menu. This runs full updates of ...")
 
imported>Braydoge
(Documented the bug in this function)
Line 2: Line 2:
[[Category:Papyrus]]
[[Category:Papyrus]]
'''Member of:''' [[Game Script]]
'''Member of:''' [[Game Script]]
'''Warning''': This function is not working as intended. Instead of passing the specified number ouf 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 wait menu. This runs full updates of AI so if the number of hours is large enough, this can produce a noticeable hitch best hidden insed of a menu.
Passes the specified number of hours as if the player used the wait menu. This runs full updates of AI so if the number of hours is large enough, this can produce a noticeable hitch best hidden insed of a menu.

Revision as of 05:11, 25 June 2021

Member of: Game Script

Warning: This function is not working as intended. Instead of passing the specified number ouf 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 wait menu. This runs full updates of AI so if the number of hours is large enough, this can produce a noticeable hitch best hidden insed of a menu.

Syntax

Function PassTime(int aiHours) native global

Parameters

  • aiHours: The number of hours to pass

Return Value

None

Examples

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

See Also