new
This commit is contained in:
27
engine/scenes/world/npcs/npc.tscn
Normal file
27
engine/scenes/world/npcs/npc.tscn
Normal file
@@ -0,0 +1,27 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://mldhnnqxu1x8"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/world/npc/npc.gd" id="1_cm6mj"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_m00ct"]
|
||||
height = 20.0
|
||||
|
||||
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_xle2i"]
|
||||
properties/0/path = NodePath(".:position")
|
||||
properties/0/spawn = true
|
||||
properties/0/replication_mode = 1
|
||||
properties/1/path = NodePath(".:npc_data")
|
||||
properties/1/spawn = true
|
||||
properties/1/replication_mode = 1
|
||||
|
||||
[node name="Npc" type="CharacterBody2D"]
|
||||
script = ExtResource("1_cm6mj")
|
||||
|
||||
[node name="NpcCollision" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CapsuleShape2D_m00ct")
|
||||
|
||||
[node name="NpcMain" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
|
||||
[node name="MultiNpc" type="MultiplayerSynchronizer" parent="."]
|
||||
replication_config = SubResource("SceneReplicationConfig_xle2i")
|
||||
Reference in New Issue
Block a user