New models; using raft
This commit is contained in:
@@ -228,8 +228,7 @@ function StartGameQuest()
|
||||
quest.activate = function(this)
|
||||
print('activate...')
|
||||
local mc_is_free = function()
|
||||
this.boat_id = ecs_vehicle_set("boat", 0, 0, -20, 1.75)
|
||||
this.boat2_id = ecs_vehicle_set("boat", -10, 0, -20, 1.55)
|
||||
this.boat_id = ecs_vehicle_set("raft", 0, 0, -20, 1.75)
|
||||
this.npc_id = ecs_npc_set("normal-female.glb", 0, 2, -20, 1.75)
|
||||
this.boat = true
|
||||
-- ecs_set_slot(this.boat_id, this.npc_id, "captain_seat")
|
||||
@@ -251,7 +250,7 @@ function StartGameQuest()
|
||||
end
|
||||
quests = {}
|
||||
-- ecs_set_debug_drawing(true)
|
||||
setup_handler(function(event)
|
||||
setup_handler(function(event, entity)
|
||||
print(event)
|
||||
for k, v in pairs(quests) do
|
||||
if v.active then
|
||||
@@ -264,7 +263,7 @@ setup_handler(function(event)
|
||||
print("narration progress!")
|
||||
elseif event == "narration_answered" then
|
||||
local answer = narration_get_answer()
|
||||
story:choose(answer)
|
||||
-- story:choose(answer)
|
||||
print("answered:", answer)
|
||||
elseif event == "new_game" then
|
||||
ecs_character_params_set("player", "gravity", true)
|
||||
|
||||
Reference in New Issue
Block a user