Now About Social Code
summaryrefslogtreecommitdiff
path: root/scripts/locker.gd
diff options
context:
space:
mode:
authorLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-09-29 14:28:57 +0100
committerLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-09-29 14:28:57 +0100
commit0b14efee60765701f439b5174e56c0cf0639d20c (patch)
treeba319069e4f0a8d1377f34c5254246b65cff1765 /scripts/locker.gd
parent688a0418fd24c9ffff7dca43dd027ccb3784a373 (diff)
player,bsp_level_generator: Add lockers and interaction
Diffstat (limited to 'scripts/locker.gd')
-rw-r--r--scripts/locker.gd11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/locker.gd b/scripts/locker.gd
new file mode 100644
index 0000000..b19d23a
--- /dev/null
+++ b/scripts/locker.gd
@@ -0,0 +1,11 @@
+extends Area3D
+
+var contents: int = 0
+# Called when the node enters the scene tree for the first time.
+func _ready() -> void:
+ contents = randi_range(0, 20)
+
+func get_contents() -> int:
+ var con = contents
+ contents = 0
+ return con