13 lines
223 B
GDScript
13 lines
223 B
GDScript
extends Node3D
|
|
|
|
var plant: StringName
|
|
|
|
func _ready() -> void:
|
|
if multiplayer.is_server():
|
|
$Timer.timeout.connect(on_timeout)
|
|
|
|
func on_timeout():
|
|
if multiplayer.is_server() == false:
|
|
return
|
|
|
|
Session.kill_site(plant)
|