11 lines
221 B
GDScript
11 lines
221 B
GDScript
|
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
|