Difference between revisions of "Wait (Procedure)"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Henning
 
m (Correct small typo)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Procedures
{{Procedures
|Name=Wait
|Name=Wait
|Description=If not paired with another procedure in a Simultaneous Branch, the '''Wait''' Procedure allows an actor to stop doing things for a defined period of time. If paired with another procedure in a [[:Category:Package_Templates#Branches|Simumltaneous Branch]], it will complete that branch after the specified amount of time.
|Description=If not paired with another procedure in a Simultaneous Branch, the '''Wait''' Procedure allows an actor to stop doing things for a defined period of real-world time. If paired with another procedure in a [[:Category:Package_Templates#Branches|Simultaneous Branch]], it will complete that branch after the specified amount of time. Time in menu mode is not counted.
|Completes=After the specified time elapses.
|Completes=After the specified time elapses (the wait time counts down to zero).  


|Param1=ActualSeconds
|Param1=ActualSeconds
|Type1=Float
|Type1=Float
|Desc1=How long the procedure waits until it's done. A time of zero causes the wait procedure to go on forever.
|Desc1=How many real-world secnds the procedure will wait until completing, not counting time in menus. A time of zero causes the wait procedure to never complete.


|Param2=StopMovement
|Param2=StopMovement
Line 13: Line 13:


|Notes=
|Notes=
* Does this procedure have a defined ending?
* Interaction of the StopMovement flag with other procedures in a simultaneous branch is undocumented - please use with care and document the results of your tests on this page.
** Yes, when the wait time counts down to zero.
* There are a wide range of other ways for Actors and scripts to wait, many of which are listed under [[Wait - Utility]].  
* When does the wait time count down?
 
** It should only count down during actual gameplay. Not in menus.
|SeeAlso=
* What does ActualSeconds mean?
*[[Wait - Utility]]
** It means that the function will wait for actual, real seconds. Not game seconds.
* How does the StopMovement flag interact with other procedures when done in a simultaneous branch?
}}
}}

Latest revision as of 20:28, 2 October 2023

Behavior

Description:
If not paired with another procedure in a Simultaneous Branch, the Wait Procedure allows an actor to stop doing things for a defined period of real-world time. If paired with another procedure in a Simultaneous Branch, it will complete that branch after the specified amount of time. Time in menu mode is not counted.

The procedure completes:
After the specified time elapses (the wait time counts down to zero).

Parameters

  • ActualSeconds (Float): How many real-world secnds the procedure will wait until completing, not counting time in menus. A time of zero causes the wait procedure to never complete.
  • StopMovement (Bool): If this is true, it makes the actor stop moving -- which is to say, it stops the actor's pathfinding/locomotion. (It does not stop any other incidental animations.)

                                   

Notes

  • Interaction of the StopMovement flag with other procedures in a simultaneous branch is undocumented - please use with care and document the results of your tests on this page.
  • There are a wide range of other ways for Actors and scripts to wait, many of which are listed under Wait - Utility.

See Also