Next: , Previous: , Up: General   [Contents][Index]


8.15 Time Speed Manager

Component: TimeSpeedManager

This component allows the speed of the game to be changed. If ’T Scale’ is less than 1, slow things down. If greater than 1, speed up. If less than 0, speed up (Time cannot run backwards). SetRecoveryRate and SetTimeScale both take a floating point value.

Field of TimeSpeedManager: float tScale

How fast is time passing? 1 = normal

Default value: 1.0f

Optional Field of TimeSpeedManager: float recoveryRate

how fast does time return to normal?

Default value: 0f

Available Messages

Message on TimeSpeedManager: ResetTimeScale ()

Sets the time scale back to 1, causing time to flow normally

Message on TimeSpeedManager: SetRecoveryRate (float)

Sets the rate at which the ’Time Scale’ returns to 1. Set it to 0 to disable this feature

Argument: The new recovery rate

Message on TimeSpeedManager: SetTimeScale (float)

Set the time scale for the game. You can speed up & slow down time easily this way

Argument: The new time scale. 1 is normal, 0 is paused. The absolute value is used, time cannot run backwards.

Field of TimeSpeedManager: float tScale

How fast is time passing? 1 = normal

Default value: 1.0f

Optional Field of TimeSpeedManager: float recoveryRate

how fast does time return to normal?

Default value: 0f

Available Messages

Message on TimeSpeedManager: ResetTimeScale ()

Sets the time scale back to 1, causing time to flow normally

Message on TimeSpeedManager: SetRecoveryRate (float)

Sets the rate at which the ’Time Scale’ returns to 1. Set it to 0 to disable this feature

Argument: The new recovery rate

Message on TimeSpeedManager: SetTimeScale (float)

Set the time scale for the game. You can speed up & slow down time easily this way

Argument: The new time scale. 1 is normal, 0 is paused. The absolute value is used, time cannot run backwards.


Next: , Previous: , Up: General   [Contents][Index]