[Support] GSC: Spectators?
-
checkAllowSpectating() { wait ( 0.05 ); update = false; if ( !level.aliveCount[ game["attackers"] ] ) { level.spectateOverride[game["attackers"]].allowEnemySpectate = 1; update = true; } if ( !level.aliveCount[ game["defenders"] ] ) { level.spectateOverride[game["defenders"]].allowEnemySpectate = 1; update = true; } if ( update ) maps\mp\gametypes\_spectating::updateSpectateSettings(); }-If I wanted to set spectators to an automatic team, axis or allies, would this be the right code to do it, I think It’s not?
-
If you don't know if it's the right/wrong code for it: test it.
-
Farzad what is your code? the code to go in spectator mode?
Use this to go in spectator modegoInSpectator(){ self maps\mp\gametypes\_spectating::setSpectatePermissions(); self allowSpectateTeam( "freelook", true ); self.sessionstate = "spectator"; } -
Farzad what is your code? the code to go in spectator mode?
Use this to go in spectator modegoInSpectator(){ self maps\mp\gametypes\_spectating::setSpectatePermissions(); self allowSpectateTeam( "freelook", true ); self.sessionstate = "spectator"; }Sorex With SnD, you can’t just spawn in if you connect late and the round has started.. I’m looking to auto set any spectators (people who connect late to the round and can’t spawn in) to allies or axis
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login