extends KinematicBody2D func damage(arg, id): vida += arg get_tree().get_nodes_in_group('server')[0]._enemy_dmg(enemy_id) if vida <= 0: get_tree().get_nodes_in_group('enemy_authority')[0].death_count(id) queue_free() var enemy_id = 0 var type = 0 var fliph = 0 export var vida = 2 # Called when the node enters the scene tree for the first time. var motion = Vector2(0,50) func _physics_process(delta): move_and_slide(motion)