Fixed bug with front door placement

This commit is contained in:
Segey Lapin
2020-04-16 09:50:31 +03:00
parent 4e3135559f
commit b7a9e2e0b2
7 changed files with 223 additions and 162 deletions

View File

@@ -159,7 +159,7 @@ class ObjectiveWalkto extends QuestObjective:
return save_data
func _ready():
pass
set_process(false)
func check_trigger(t):
@@ -201,13 +201,15 @@ func create_objective(v):
var o_title = v[1]
var o_desc = v[2]
var o_radius = v[3]
var where = global.exit_door.global_transform.origin
var where = global.interior.exit_doors[0].global_transform.origin
var obj = ObjectiveWalkto.new(o_title, o_desc, where, o_radius)
return obj
return null
var up_time = 0.0
var state: int = 0
func activate():
set_process(true)
func _process(delta):
up_time += delta
if up_time > 1000.0: