Post: Teambased spawns
01-28-2016, 09:03 AM #1
Nate͍
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); I want to use teambased spawns.. For allies and axis... Just making a small gamemode :P
I just need the codes
self setorigin(x,x,x); is what I know, and I just want them for allies and axis that's it.. Thx
(adsbygoogle = window.adsbygoogle || []).push({});
01-28-2016, 10:21 PM #2
-Numb
You talkin to me?
Originally posted by personnumber1 View Post
I want to use teambased spawns.. For allies and axis... Just making a small gamemode :P
I just need the codes
self setorigin(x,x,x); is what I know, and I just want them for allies and axis that's it.. Thx


You could put this on the onPlayerSpawned() function, I think it should work.

    if(self.pers["team"] == axis)
{
self setorigin(x,x,x); // Axis team spawn
}
else
{
self setorigin(x,x,x); // Allies team spawn
}
01-29-2016, 12:54 AM #3
Nate͍
Do a barrel roll!
Originally posted by Numb View Post
You could put this on the onPlayerSpawned() function, I think it should work.

    if(self.pers["team"] == axis)
{
self setorigin(x,x,x); // Axis team spawn
}
else
{
self setorigin(x,x,x); // Allies team spawn
}


Yes, but I want them to spawn in different places, not all at the same place
01-29-2016, 01:05 AM #4
HiddenHour
I defeated!
Originally posted by personnumber1 View Post
Yes, but I want them to spawn in different places, not all at the same place


Make an array of coordinates
level.spawns["axis"][0] = (1,2,3);
level.spawns["axis"][1] = (4,5,6);


And then use randomIntRange to select a random number. Assign randomIntRange to a variable like randomNum and then do this
setOrigin(level.spawns[team here][randomNum]);
01-29-2016, 04:05 AM #5
Nate͍
Do a barrel roll!
Thx bro

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo