From aacb41ce0b60179506f1b84bde1dc57705690065 Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Wed, 21 Jan 2026 12:16:12 -0600 Subject: [PATCH] adress https://github.com/TorqueGameEngines/Torque3D/issues/1663 by ensureing if the players is a camrea, then %conection.camera knows it's the same thing --- .../clientServer/scripts/server/connectionToClient.tscript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Templates/BaseGame/game/core/clientServer/scripts/server/connectionToClient.tscript b/Templates/BaseGame/game/core/clientServer/scripts/server/connectionToClient.tscript index 73a325dbe..3d817d4fb 100644 --- a/Templates/BaseGame/game/core/clientServer/scripts/server/connectionToClient.tscript +++ b/Templates/BaseGame/game/core/clientServer/scripts/server/connectionToClient.tscript @@ -199,8 +199,13 @@ function GameConnectionListener::onSetSpawnPointComplete( %this, %client ) %client.player = spawnObject(%client.spawnClass, %client.spawnDataBlock, "", %client.spawnProperties, %client.spawnScript); if(!isObject(%client.player)) + { error("Failed to spawn player object!"); - + } + else if (%client.player.isMemberOfClass("Camera")) + { + %client.camera = %client.player; + } if (!%client.player.isMemberOfClass(%client.spawnClass)) warn("Trying to spawn a class that does not derive from "@ %client.spawnClass);