summaryrefslogtreecommitdiffstats
path: root/assets/view_model
diff options
context:
space:
mode:
Diffstat (limited to 'assets/view_model')
-rw-r--r--assets/view_model/ViewModel.gd2
-rw-r--r--assets/view_model/ViewModel.tscn5
2 files changed, 2 insertions, 5 deletions
diff --git a/assets/view_model/ViewModel.gd b/assets/view_model/ViewModel.gd
index cb85117..8a818a3 100644
--- a/assets/view_model/ViewModel.gd
+++ b/assets/view_model/ViewModel.gd
@@ -8,7 +8,7 @@ export var gravity = 35
var velocity = Vector3.ZERO
var snap = Vector3.DOWN
-onready var character = $BaseCharacter
+export(NodePath) onready var character = get_node(character)
onready var anchor = $Anchor
onready var spring_arm = $Anchor/SpringArm
onready var fps_label = $fps_label
diff --git a/assets/view_model/ViewModel.tscn b/assets/view_model/ViewModel.tscn
index 0267e64..f5d3118 100644
--- a/assets/view_model/ViewModel.tscn
+++ b/assets/view_model/ViewModel.tscn
@@ -1,14 +1,11 @@
-[gd_scene load_steps=3 format=2]
+[gd_scene load_steps=2 format=2]
-[ext_resource path="res://assets/characters/base_character/BaseCharacter.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/view_model/ViewModel.gd" type="Script" id=2]
[node name="ViewModel" type="Spatial"]
script = ExtResource( 2 )
aim_sensitivity = 0.04
-[node name="BaseCharacter" parent="." instance=ExtResource( 1 )]
-
[node name="Anchor" type="Spatial" parent="."]
[node name="SpringArm" type="SpringArm" parent="Anchor"]