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:
9
Assets/scripts/generator_key.gd
Normal file
9
Assets/scripts/generator_key.gd
Normal 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()
|
||||
Reference in New Issue
Block a user