set_punctual_state_timeout - ryzom/ryzomcore GitHub Wiki


title: Set Punctual State Timeout description: published: true date: 2023-03-12T01:33:26.434Z tags: editor: markdown dateCreated: 2023-03-12T00:23:25.378Z

set_punctual_state_timeout

The set_punctual_state_timeout action sets up a timer for the current state that will trigger the punctual_state_timeout event when the elapsed time exceeds the specified range. It is similar to set_state_timeout, but specific to punctual states.

This timer is canceled (disabled) when the punctual state is ended or changed, making it useful for limiting the duration of a state or other timed behavior that should be canceled once the state is done.

Parameter Syntax

<min time>
[<max time>]

Parameters

  • <min time>: The minimum duration of the timer in game cycles.
  • [<max time>]: (Optional) The maximum duration of the timer in game cycles. If specified, the actual duration of the timer will be randomly selected between min_time and max_time. Otherwise, the timer will only last for the minimum time.

See also

  • Set State Timeout: Sets up a timer that triggers the state_timeout event unless the state is changed before the timer elapses.
  • Punctual State: Suspends the current active state and begins a punctual state, which has no positional behavior.
  • Set Timer T0-3: Sets a timer for a game cycle duration or at a specific Ryzom time that triggers a timer_t0_triggered to timer_t3_triggered event.
  • Begin State: Switches to another state.
  • Random Select State: Changes the state of the NPC group to one of the listed states at random based on their assigned weights.
⚠️ **GitHub.com Fallback** ⚠️