Summary

A convenience struct to easily manage a time countdown, based on <see cref="P:Sandbox.RealTime.GlobalNow" />.<br /><br /> Typical usage would see you assigning to a variable of this type a necessary amount of seconds. Then the struct would return the time countdown, or can be used as a bool i.e.: <code> RealTimeUntil nextAttack = 10; if ( nextAttack ) { /*Do something*/ } </code>

Properties

Absolute Time to which we are counting down to, based on Sandbox.RealTime.GlobalNow.
Fraction The countdown, but as a fraction, i.e. a value from 0 (start of countdown) to 1 (end of countdown)
Passed Amount of seconds passed since the countdown started.
Relative The actual countdown, in seconds.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.