Modified safe with keypad that can open and close
This commit is contained in:
File diff suppressed because one or more lines are too long
12
Assets/scripts/Objects/safe.gd
Normal file
12
Assets/scripts/Objects/safe.gd
Normal file
@ -0,0 +1,12 @@
|
||||
extends Interactable
|
||||
|
||||
@onready var APlayer = $AnimationPlayer
|
||||
var is_open = false
|
||||
|
||||
func interact(player):
|
||||
if not is_open and not APlayer.is_playing():
|
||||
APlayer.play("Open")
|
||||
is_open = true
|
||||
elif not APlayer.is_playing():
|
||||
APlayer.play("Close")
|
||||
is_open = false
|
||||
Binary file not shown.
@ -17,6 +17,7 @@ nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
@ -28,11 +29,11 @@ animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=1
|
||||
gltf/embedded_image_handling=1
|
||||
blender/nodes/visible=0
|
||||
blender/nodes/active_collection_only=false
|
||||
blender/nodes/punctual_lights=true
|
||||
blender/nodes/cameras=true
|
||||
blender/nodes/custom_properties=true
|
||||
|
||||
BIN
Blender Files/Objects/Safe/Safe.blend1
Normal file
BIN
Blender Files/Objects/Safe/Safe.blend1
Normal file
Binary file not shown.
Reference in New Issue
Block a user