Behavior Designer - Is Lua True
Posted: Fri Feb 18, 2022 9:12 pm
Hello,
I am trying to build a behavior tree with an "Attack" which is conditional on "Is Lua True". I cannot find the right syntax to check the Lua variable.
I want the AI to attack only if the Lua variable (bool) is true.
E.g. the Lua variable => "player_alive" = true (default as set in the Dialogue Database / Variables)
How should I write the Lua Code in the Behavior Tree? I tried with "player_alive" or "Variable["player_s5duel"]", but it doesn't work.
I have attached the Lua bridge to the AI character
Thank you!
I am trying to build a behavior tree with an "Attack" which is conditional on "Is Lua True". I cannot find the right syntax to check the Lua variable.
I want the AI to attack only if the Lua variable (bool) is true.
E.g. the Lua variable => "player_alive" = true (default as set in the Dialogue Database / Variables)
How should I write the Lua Code in the Behavior Tree? I tried with "player_alive" or "Variable["player_s5duel"]", but it doesn't work.
I have attached the Lua bridge to the AI character
Thank you!