• team.SetSpawnPoint
    11 replies, posted
Does this over ride the spawn points hardcoded into it by the map maker?
lmao no. It just picks where you want the player to spawn.
So it won't stop the player from spawning where the map creator sets spawn points while making the map? [editline]26th December 2010[/editline] and why would you rate me dumb when PERP does it.
Well if you want the player to spawn only on the counter-terrorist spots you'd do, [lua]team.SetSpawnPoint( TEAM_TEAMENUMHERE, "info_player_counterterrorist" );[/lua] And don't worry about kasumi~ rating you dumb he's just a troll
[QUOTE=Annoyed Tree;26991624]Well if you want the player to spawn only on the counter-terrorist spots you'd do, [lua]team.SetSpawnPoint( TEAM_TEAMENUMHERE, "info_player_counterterrorist" );[/lua] And don't worry about kasumi~ rating you dumb he's just a troll[/QUOTE] Well like in PERP you spawn in town and by the "car dealership" however the default spawn points are completely different and you never spawn in the default map spawn points. I was wondering if team.SetSpawnPoint allowed you to overwrite it like that [editline]26th December 2010[/editline] also kasumi isn't a troll he is a just a tranny retard. [editline]26th December 2010[/editline] I mean she*
No.
[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSpawn]Gamemode.PlayerSpawn [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
-snop-
-snip-
ban him
[QUOTE=victormeriqui_1;26993569]ban him[/QUOTE] You're the new Cubar.
[QUOTE=c-unit;26995115]You're the new Cubar.[/QUOTE] You're the new Cubar. Also [lua] local SpawnPositions = { Vector(0, 0, 64) --Put whatever you want or create another table for other teams } function GM:PlayerSpawn(ply) if ply:Team() == TEAM_ENUM then local spawnpoint = table.Random(SpawnPositions) if self:IsSpawnpointSuitable(ply, spawnpoint, false) then ply:SetPos(spawnpoint) end end end [/lua]
Sorry, you need to Log In to post a reply to this thread.