Added more scripts

This commit is contained in:
Vladislav Khorev committed 2026-04-03 20:06:33 +03:00
1 parent 63c9d7b35b
commit 403b93e7f5
5 files changed
+47 -13

No files matched your search

+13 -2
View File
@@ -1,4 +1,15 @@
import game_api
# Tell NPC 0 to walk to the origin (0, 0, 0) when the game starts.
game_api.npc_walk_to(0, 10.0, 0.0, 0.0)
# Chain of waypoints for NPC 0.
# Each on_arrived callback issues the next walk command.
def step3():
game_api.npc_walk_to(0, 0.0, 0.0, -30.0, on_arrived=step1)
def step2():
game_api.npc_walk_to(0, -2.0, 0.0, -2.0, on_arrived=step3)
def step1():
game_api.npc_walk_to(0, 2.0, 0.0, -2.0, on_arrived=step2)
step1()