Skip to content

set_condition_success

Ryzom Core Wiki edited this page Jul 8, 2024 · 2 revisions

title: Set Condition Success description: published: true date: 2023-03-16T23:10:23.285Z tags: editor: markdown dateCreated: 2023-03-16T22:27:51.384Z

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.

Clone this wiki locally