Author Topic: Finding the spawn sphere of a map.  (Read 936 times)

I'd like to know how to find the location of a map's spawnSphere without having to have the correct map.

Can someone tell me how I'd go about doing it?

suiciding should work, or open up mission editor and look around

suiciding should work, or open up mission editor and look around
that's not what i meant

The only way to find a map's spawnsphere(s) is to open the map file itself (The .mis is actually a script like a .cs or .gui, and the .mis usually defines one or more spawnspheres. Note that all units within the map are TGE units. A 1x1 block is 0.5 by 0.5 by 0.6 TGE units, a 1x1 plate 0.5 by 0.5 by 0.2) or load the map(And then probably look at it from the mission editor, although other methods exist, mostly based on the console. tree(); is one of them).

The only way to find a map's spawnsphere(s) is to open the map file itself (The .mis is actually a script like a .cs or .gui, and the .mis usually defines one or more spawnspheres. Note that all units within the map are TGE units. A 1x1 block is 0.5 by 0.5 by 0.6 TGE units, a 1x1 plate 0.5 by 0.5 by 0.2) or load the map(And then probably look at it from the mission editor, although other methods exist, mostly based on the console. tree(); is one of them).
Are you born stupid or drop on the head as a baby?

Are you born stupid or drop on the head as a baby?
Lol'd.

But I mean through CODE.

Not through silly tricks. I want this to be able to find the spawn sphere.

From there, I need to know how to make only certain people spawn at a brick.

Are you born stupid or drop on the head as a baby?
Are you born clueless, or are you just really determined to become an idiot?

I just checked, and the default checkpoint does not create a spawnsphere(besides, creating a spawnsphere to spawn on a brick is not the best way, the best way is using the brick as a spawn point itself.)

The spwanspheres of a map are within the simgroup PlayerDropPoints, so you can find all of the map-defined spawnspheres with
for(%i=0; %i<PlayerDropPoints.getCount(); %i++)
{
    %sphere = PlayerDropPoints.getObject(%i);
    .....
}

However, minigames and other things that use bricks to spawn don't use a spawnsphere, simply because they can use the object itself.

for(%i=0; %i<PlayerDropPoints.getCount(); %i++)
{
    %sphere = PlayerDropPoints.getObject(%i);
    .....
}
I knew that much.

Wouldn't spawnSphere be considered a class then?