Working on web, change python to lua

This commit is contained in:
Vladislav Khorev committed 2026-04-04 14:29:20 +03:00
1 parent 90e2a369f4
commit 178f69967b
14 files changed
+327 -162

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
-- Chain of waypoints for NPC 0.
-- Each on_arrived callback issues the next walk command.
local function step3()
game_api.npc_walk_to(0, 0.0, 0.0, -30.0, step1)
end
local function step2()
game_api.npc_walk_to(0, -2.0, 0.0, -2.0, step3)
end
function step1()
game_api.npc_walk_to(0, 2.0, 0.0, -2.0, step2)
end
step1()
-15
View File
@@ -1,15 +0,0 @@
import game_api
# 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()