mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Merge pull request #6985 from CordellierPaul/patch-1
Changing PathFollow to PathFollow3D in "your first 3D game"
This commit is contained in:
@@ -250,7 +250,7 @@ Let's code the mob spawning logic. We're going to:
|
||||
|
||||
// Choose a random location on the SpawnPath.
|
||||
// We store the reference to the SpawnLocation node.
|
||||
var mobSpawnLocation = GetNode<PathFollow>("SpawnPath/SpawnLocation");
|
||||
var mobSpawnLocation = GetNode<PathFollow3D>("SpawnPath/SpawnLocation");
|
||||
// And give it a random offset.
|
||||
mobSpawnLocation.ProgressRatio = GD.Randf();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user