feat: Implement Tekton roaming NPC with grid movement, combat mechanics, and multiplayer synchronization.
This commit is contained in:
+5
-4
@@ -105,10 +105,11 @@ func set_carried(state: bool, p_carrier: Node3D = null):
|
||||
var controller = get_node_or_null("TektonController")
|
||||
if controller:
|
||||
controller.set_physics_process(not state)
|
||||
if state:
|
||||
controller.get_node("Timer").stop()
|
||||
else:
|
||||
controller.call("_start_timer")
|
||||
if controller.get("timer"):
|
||||
if state:
|
||||
controller.timer.stop()
|
||||
else:
|
||||
controller.call("_start_timer")
|
||||
|
||||
if not state:
|
||||
update_visual_position()
|
||||
|
||||
Reference in New Issue
Block a user