Starting Game with Camera View, not Player
by Infinitum3D · in Torque Game Engine · 02/24/2007 (1:59 am) · 2 replies
Does anybody have a simple fix for a newbie?
I want to have a square gameboard, with four cameras, one on each side. I want the game to load with the starting view from a camera, not a spawned player.
Is it as simple as "Don't exec the player.cs"?
Thanks!
Tony
I want to have a square gameboard, with four cameras, one on each side. I want the game to load with the starting view from a camera, not a spawned player.
Is it as simple as "Don't exec the player.cs"?
Thanks!
Tony
#2
02/24/2007 (8:06 am)
If it's a simple 2 player game, name your spawn points "spawn1" and "spawn2" and put an "if" statement in there checking if spawn1 is occupied. If it is, player spawns in at spawn2, if both are occupied, then give them a message stating the game is full or make them an observer.
Torque 3D Owner Vincent D
In starter.fps/server/scripts/game.cs in function GameConnection::onClientEnterGame, around line 218 you see the line
comment that line out (or remove it) so it looks like :
now below that add
that should work, but it with this (almost default) method 2 or more players could have their cameras spawned on the same spawnpoint.