12 lines
255 B
GDScript
12 lines
255 B
GDScript
extends CharacterBody3D
|
|
|
|
var sim_id: int = -1
|
|
var npc_name: String = ""
|
|
var profession: String = ""
|
|
|
|
func setup_from_sim(npc: SimNPC) -> void:
|
|
sim_id = npc.id
|
|
npc_name = npc.npc_name
|
|
profession = npc.profession
|
|
name = "NPC_%s_%s" % [sim_id, npc_name]
|