Problem with PathFollow
Hello again! I want to make random enemies. On one of lessons (but there 2D, I do in 3D, probably because of it and problems, very few lessons on 3D, it is sad). Added a Path node, drew a curve (two points), tied a PathFollow node. Because of a simple timer I wanted to "summon" enemies, but an error occurs: "Invalid call. Nonexistent function 'position' in base 'PathFollow'."
As I understand it, there is no such parameter, but in the documentation I did not find the parameter I need, so I do not know how to implement it, here is my code:
func _on_Timer_timeout(): $Path/PathFollow.offset = randi() var enemy = Enemy.instance() add_child(enemy) enemy.position = $Path/PathFollow.position()