TinyAdventure/ai/tasks/dash.gd

11 lines
221 B
GDScript
Raw Normal View History

extends BTAction
var _agent_npc:NonPlayerCharacter = null
func _tick(_delta: float) -> Status:
_agent_npc = agent as NonPlayerCharacter
_agent_npc.velocity = _agent_npc.global_transform.basis.z * 10
return SUCCESS