set_condition_success - ryzom/ryzomcore GitHub Wiki


title: Set Condition Success description: published: true date: 2023-03-14T04:10:59.322Z tags: editor: markdown dateCreated: 2023-03-14T04:10:59.322Z

setConditionSuccess

The setConditionSuccess native AI script function is used internally to set the success of a dynamic_if condition.

This function is an internal implementation detail and should not be used by leveldesigners {.is-danger}

This document is autogenerated and needs to be reviewed and edited {.is-danger}

Syntax

()setConditionSuccess(conditionState: f); // setConditionSuccess_f_ 

Arguments

  • conditionState (float): The success state of the dynamic_if condition.

Example

()setConditionSuccess(1);

This code sets the success state of the dynamic_if condition to true.

Notes

This function is used in conjunction with the CAILogicActionDynamicIf class, which allows for the execution of dynamic_if conditions.

The CAILogicDynamicIfHelper class is used to store the success state of the dynamic_if condition, and the executeAction function of the CAILogicActionDynamicIf class checks the success state to determine whether to execute the true or false branch of the if condition.

⚠️ **GitHub.com Fallback** ⚠️