wave-survival/project/objects/pickups/demo_pack_pickup.tscn

37 lines
1.4 KiB
Text

[gd_scene format=3 uid="uid://cclghy01gblif"]
[sub_resource type="SphereShape3D" id="SphereShape3D_kl827"]
radius = 0.32121935
[sub_resource type="GDScript" id="GDScript_kl827"]
script/source = "extends Interactable
func _highlight_changed(_interactor: PlayerInteractor, value: bool) -> void:
var hud := HeadsUpDisplay.get_singleton()
if hud:
hud.set_tooltip(\"Pick up Demolition Pack\" if value else \"\")
func _activated(interactor: PlayerInteractor) -> void:
interactor.pickup_demo_pack()
get_owner().queue_free()
func _process(delta : float):
$\"../MeshInstance3D\".global_rotate(Vector3(0, 1, 0), delta)
"
[sub_resource type="BoxMesh" id="BoxMesh_kl827"]
size = Vector3(0.19555664, 0.13061523, 0.37719727)
[node name="DemoPackPickup" type="StaticBody3D" unique_id=1833876644]
collision_layer = 16
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1902989490]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.248144, 0)
shape = SubResource("SphereShape3D_kl827")
[node name="Interactable" type="Interactable" parent="." unique_id=117559839]
script = SubResource("GDScript_kl827")
[node name="MeshInstance3D" type="MeshInstance3D" parent="." unique_id=2051580886]
transform = Transform3D(0.8942324, -0.44760296, -7.450581e-09, 0.4082677, 0.81564724, -0.40992302, 0.1834828, 0.36656648, 0.9121201, 0, 1.248144, 0)
mesh = SubResource("BoxMesh_kl827")