2019-11-11 10:24:29 +01:00
|
|
|
extends KinematicBody
|
|
|
|
class_name NPC
|
2019-11-11 10:44:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
var current_target = null
|
|
|
|
|
|
|
|
|
|
|
|
func set_position(position: Vector3):
|
|
|
|
transform.origin = position
|
|
|
|
|
|
|
|
|
|
|
|
func move_towards(direction_times_speed: Vector3):
|
|
|
|
move_and_slide(direction_times_speed)
|