Blockland Forums > Modification Help
Finding the spawn sphere of a map.
<< < (2/2)
otto-san:

--- Quote from: shafin25 on September 19, 2010, 04:42:15 AM ---Are you born stupid or drop on the head as a baby?

--- End quote ---
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.
Uristqwerty:

--- Quote from: shafin25 on September 19, 2010, 04:42:15 AM ---Are you born stupid or drop on the head as a baby?

--- End quote ---
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.
otto-san:

--- Quote from: Uristqwerty on September 19, 2010, 12:12:28 PM ---for(%i=0; %i<PlayerDropPoints.getCount(); %i++)
{
    %sphere = PlayerDropPoints.getObject(%i);
    .....
}

--- End quote ---
I knew that much.

Wouldn't spawnSphere be considered a class then?
Navigation
Message Index
Previous page

Go to full version