Made and scripted a generator key that modifies the variable to be able to turn on the generator using the panel

This commit is contained in:
2024-07-17 21:22:04 -05:00
parent 1a6a94d02b
commit abc319836f
5 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,9 @@
extends StaticBody3D
@export var promt_message:String = "Pickup Key"
@export var promt_key:String
func interact(player):
GlobalSettings.HasGeneratorKey = true
#Play Pickup sound
queue_free()