15 lines
348 B
Python
15 lines
348 B
Python
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() |