local EventAction_PlayerReSpawn = { PlayerKey = -1; DelayTime = 3. } -- 触发器激活时,将执行Action的Execute function EventAction_PlayerReSpawn:Execute(...) if UGCGameSystem.IsServer() then UGCLogSystem.Log("[EventAction_PlayerReSpawn_Execute] PlayerKey:%s", tostring(self.PlayerKey)) UGCEventSystem.SetTimer(UGCGameSystem.GameState, function() UGCGameSystem.RespawnPlayer(self.PlayerKey) end, self.DelayTime) end return true end return EventAction_PlayerReSpawn