I'm working on a gamemode and currently I need to set my spawns, but I'm having trouble doing so.
I made a map in hammer that has 2 custom entities (I know how to make entities in hammer :s),
pdm_spawn_blue
pdm_spawn_red
Then in my script I set the spawns for each team accordingly. I tried both of these snippets, neither one working:
[lua]
team.SetSpawnPoint(TEAM_BLU, "pdm_spawn_blue")
team.SetSpawnPoint(TEAM_RED, "pdm_spawn_red")
[/lua]
or
[lua]
team.SetSpawnPoint(1, "pdm_spawn_blue")
team.SetSpawnPoint(2, "pdm_spawn_red")
[/lua]
Also, I defined the teams in Shared, and this is the snippet, if its worth anything:
[lua]
team.SetUp(1, "BLU", Color(0, 115, 230))
team.SetUp(2, "RED", Color(230, 0, 0))
[/lua]
---
So thats the problem, any help is greatly appreciated :v
The spawns need to be valid entities, so you need to create the SENT code for them.
Ah, cant believe this didnt occur to me. Thank you very much ^_^
Sorry, you need to Log In to post a reply to this thread.