Added Global Variable in settings for the last known location and is updated when player starts coughing
This commit is contained in:
@ -3,3 +3,5 @@ extends Node
|
|||||||
var is_paused = false
|
var is_paused = false
|
||||||
|
|
||||||
var current_map = ""
|
var current_map = ""
|
||||||
|
|
||||||
|
var Player_Last_Location = Vector3(0,0,0)
|
||||||
|
|||||||
@ -20,10 +20,12 @@ func set_condition(con):
|
|||||||
$Node3D/VapeLight.off()
|
$Node3D/VapeLight.off()
|
||||||
$"Coughing Recovery".start()
|
$"Coughing Recovery".start()
|
||||||
$"Severe Coughing Timer".stop()
|
$"Severe Coughing Timer".stop()
|
||||||
|
GlobalSettings.Player_Last_Location = global_transform.origin
|
||||||
CONDITION.SEVERE_COUGHING:
|
CONDITION.SEVERE_COUGHING:
|
||||||
$Node3D/VapeLight.off()
|
$Node3D/VapeLight.off()
|
||||||
$"Severe Coughing Recovery".start()
|
$"Severe Coughing Recovery".start()
|
||||||
$"Coughing Timer".stop()
|
$"Coughing Timer".stop()
|
||||||
|
GlobalSettings.Player_Last_Location = global_transform.origin
|
||||||
|
|
||||||
var will_cough = false
|
var will_cough = false
|
||||||
var timealive = 0
|
var timealive = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user