Added Global Variable in settings for the last known location and is updated when player starts coughing

This commit is contained in:
Willow Behar
2024-05-10 11:22:24 -05:00
parent 8291bd8ed3
commit d4164c994e
2 changed files with 4 additions and 0 deletions

View File

@ -20,10 +20,12 @@ func set_condition(con):
$Node3D/VapeLight.off()
$"Coughing Recovery".start()
$"Severe Coughing Timer".stop()
GlobalSettings.Player_Last_Location = global_transform.origin
CONDITION.SEVERE_COUGHING:
$Node3D/VapeLight.off()
$"Severe Coughing Recovery".start()
$"Coughing Timer".stop()
GlobalSettings.Player_Last_Location = global_transform.origin
var will_cough = false
var timealive = 0