last working before weapon manager
This commit is contained in:
@@ -29,7 +29,7 @@ size = Vector3(3, 3, 3)
|
|||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_gnkxs"]
|
[sub_resource type="BoxShape3D" id="BoxShape3D_gnkxs"]
|
||||||
size = Vector3(10, 5.48804, 10)
|
size = Vector3(10, 5.48804, 10)
|
||||||
|
|
||||||
[node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("weapon_holder", "gun") groups=["player"]]
|
[node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("weapon_holder") groups=["player"]]
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.11359, 0)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.11359, 0)
|
||||||
collision_layer = 3
|
collision_layer = 3
|
||||||
safe_margin = 0.2
|
safe_margin = 0.2
|
||||||
@@ -37,7 +37,6 @@ script = ExtResource("1_x7wms")
|
|||||||
weapon_holder = NodePath("Head/Camera3D/WeaponHolder")
|
weapon_holder = NodePath("Head/Camera3D/WeaponHolder")
|
||||||
weapon_sway_amount = 0.1
|
weapon_sway_amount = 0.1
|
||||||
weapon_rotation_amount = 0.1
|
weapon_rotation_amount = 0.1
|
||||||
gun = NodePath("")
|
|
||||||
|
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||||
visible = false
|
visible = false
|
||||||
|
|||||||
634
scenes/tes4B20.tmp
Normal file
634
scenes/tes4B20.tmp
Normal file
File diff suppressed because one or more lines are too long
@@ -7,12 +7,7 @@ var held_guns = [gun_1,gun_2]
|
|||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready():
|
func _ready():
|
||||||
var instance_loop_times = held_guns.length()
|
pass
|
||||||
while instance_loop_times > -1:
|
|
||||||
held_guns[instance_loop_times]
|
|
||||||
|
|
||||||
instance_loop_times -= 1
|
|
||||||
|
|
||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user