Working on taxi logic
This commit is contained in:
1 parent
77c8471636
commit
b94f02bd77
10 files changed
+95
-15
No files matched your search
@@ -55,6 +55,7 @@ game_api.set_location_callbacks(
|
||||
print("Enter location uni exterior")
|
||||
local hp = game_api.getFloatValue("player_hp")
|
||||
game_api.set_player_hp(hp)
|
||||
game_api.set_teleport_active(0, false)
|
||||
end,
|
||||
function()
|
||||
print("Exit location uni exterior")
|
||||
@@ -74,4 +75,25 @@ game_api.set_trigger_zone_callbacks("darklands_exit002",
|
||||
game_api.set_trigger_zone_callbacks("darklands_exit003",
|
||||
darklands_exit001_enter_callback,
|
||||
nil
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
function taxi_zone001_enter_callback()
|
||||
game_api.start_dialogue("dialog_taxi001")
|
||||
game_api.set_trigger_zone_enabled(0, false)
|
||||
end
|
||||
|
||||
|
||||
game_api.set_call_taxi_callback(
|
||||
function()
|
||||
game_api.set_teleport_active(0, true)
|
||||
game_api.set_trigger_zone_enabled(0, false)
|
||||
end
|
||||
)
|
||||
|
||||
|
||||
game_api.set_trigger_zone_callbacks("taxi_zone001",
|
||||
taxi_zone001_enter_callback,
|
||||
nil
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user