Need a Refresher!

Ask questions, discuss ideas, get answers
Post Reply
Archimonday
Posts: 42
Joined: Tue Oct 27, 2009 2:11 am

Need a Refresher!

Post by Archimonday »

On Spawn Groups! Go.

What they do,

How I lock them to teams,

etc.
Image
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Need a Refresher!

Post by Apache Thunder »

Spawn groups are defined in the spawnpointmanagersettings.con file. Example:

Code: Select all

spawnPointManager.group 1
spawnPointManager.groupTeam 2
spawnPointManager.groupEnableToChangeTeam 0
First command command defines group, second defines team it will start on, and the second one can be used to lock it to that team. When not defined the default value is 1 which allows it to change teams. Adding the command and setting to to zero will lock it to the team that greupTeam is set to and any control point that uses that spawn group can't change it.

Spawn points are then set up to use that spawn group.

Code: Select all

ObjectTemplate.create SpawnPoint ExampleSpawn
ObjectTemplate.setSpawnId 1
ObjectTemplate.setGroup 1
The spawnpoint uses the setGroup command to define what group it uses and control points use a similar command so as to attach the spawn points to a control point:

Code: Select all

ObjectTemplate.spawnGroupId 1

Hope this helps.
ImageImageImage
I have cameras in your head!
Archimonday
Posts: 42
Joined: Tue Oct 27, 2009 2:11 am

Re: Need a Refresher!

Post by Archimonday »

it does, thanks very much!
Image
Post Reply