If I use spawn brick wont I have to load the save onspawn or something? and Im not sure how to use an onspawn function, I don't really know how to torquescript well
You'd probably want something like this:
$spawnVec = "x y z";
package YourPackage {
function GameConnection::spawnPlayer(%this) {
Parent::spawnPlayer(%this);
%this.player.setTransform($spawnVec);
}
}
activatePackage(YourPackage);
You would want to change
$spawnVec to the location of the spawnpoint. To get this, load up the map, find a spawn point you like, and in the console type and execute this code snippet:
echo(findClientByName("you name").player.position);
Then replace
$spawnVec with the coordinates/vector displayed in the console. There's probably a better way to do this, but this would work. To avoid having everyone spawn in the same place, you could find a couple spawn location, create an array of their coordinates, and have one of them randomly chosen each time a player spawns. I can write up code for this if you would like.