Problem switching idle players to spec when they time out
Posted: 30 Jul 2013, 22:54
Hi all,
I am trying to setup an AFK management in my script to force players to spec when they idle during 30 seconds.
The problem is, if a player is timing out, he won't get switched.
I'm guessing the Users_RequestSwitchToSpectator function is waiting for the client to ping back and obviously it doesn't.
Is there another way to do this or would it be possible to "force" players to spec instead of "requesting"?
I am trying to setup an AFK management in my script to force players to spec when they idle during 30 seconds.
The problem is, if a player is timing out, he won't get switched.
I'm guessing the Users_RequestSwitchToSpectator function is waiting for the client to ping back and obviously it doesn't.
Is there another way to do this or would it be possible to "force" players to spec instead of "requesting"?