-
Notifications
You must be signed in to change notification settings - Fork 94
set_condition_success
title: Set Condition Success description: published: true date: 2023-03-16T23:10:23.285Z tags: editor: markdown dateCreated: 2023-03-16T22:27:51.384Z
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}
()setConditionSuccess(conditionState: f); // setConditionSuccess_f_
-
conditionState (float): The success state of the
dynamic_if
condition.
()setConditionSuccess(1);
This code sets the success state of the dynamic_if
condition to true
.
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.