YesNoOk
avatar

Time (Triggers) (Read 7152 times)

Started by Ricepigeon, October 15, 2015, 03:42:54 pm
Share this topic:
Time (Triggers)
#1  October 15, 2015, 03:42:54 pm
  • *****
  • Thanks and God bless
    • USA
    • ricepigeon.neocities.org
Returns the state-time of the player (that is, the number of ticks that the player has been in the current state so far).

Format:
    Time
Arguments:
    none
Return type:
    int
Error conditions:
    none

Examples:
Code:
trigger1 = Time = 2
  Triggers when the player's state-time is 2.

Additional Notes:
The value of time is reset to 0 whenever the Player enters a state, even if the Player or Helper is entering the same state as it was previously. Additionally, specific values of Time are not always guaranteed to be perfectly synchronized with certain points of your character's animation. If you need an effect to be synchronized with a specific animation element, you may wish to use the AnimElemTime trigger instead.