2023-08-14 15:33:54 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-11-15 14:40:07 +00:00
<class name= "BTAwaitAnimation" inherits= "BTAction" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../../../doc/class.xsd" >
2023-08-14 15:33:54 +00:00
<brief_description >
BT action that waits for an animation to finish playing.
</brief_description>
<description >
2023-10-18 17:05:33 +00:00
BTAwaitAnimation action waits for an animation on the specified [AnimationPlayer] node to finish playing and returns [code]SUCCESS[/code].
2023-10-18 16:25:53 +00:00
Returns [code]SUCCESS[/code] if the specified animation has finished playing or if the specified animation is not currently playing.
2023-10-18 17:05:33 +00:00
Returns [code]FAILURE[/code] if the specified animation doesn't exist or if the action fails to get the [AnimationPlayer] node.
2023-08-14 15:33:54 +00:00
</description>
<tutorials >
</tutorials>
<members >
<member name= "animation_name" type= "StringName" setter= "set_animation_name" getter= "get_animation_name" default= "&""" >
Animation's key within the [AnimationPlayer] node.
</member>
<member name= "animation_player" type= "BBNode" setter= "set_animation_player" getter= "get_animation_player" >
Parameter that specifies the [AnimationPlayer] node.
</member>
<member name= "max_time" type= "float" setter= "set_max_time" getter= "get_max_time" default= "1.0" >
2024-09-30 09:17:01 +00:00
The maximum duration to wait for the animation to complete (in seconds). If the animation doesn't finish within this time, BTAwaitAnimation will stop waiting and return [code]SUCCESS[/code].
2023-08-14 15:33:54 +00:00
</member>
</members>
</class>