Problem switching idle players to spec when they time out

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
zargono
Posts: 25
Joined: 16 Jun 2012, 20:34
Location: France
Contact:

Problem switching idle players to spec when they time out

Post by zargono »

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"?
Image
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Problem switching idle players to spec when they time ou

Post by Eole »

Hello,

For the time being there is a bug that prevent the players with their ManiaPlanet window minimized to go into spectator mode from the script (Users_RequestSwitchToSpectator() from the mode script or IsSpectatorMode in a manialink script).
:?
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
zargono
Posts: 25
Joined: 16 Jun 2012, 20:34
Location: France
Contact:

Re: Problem switching idle players to spec when they time ou

Post by zargono »

OK thanks for the info!
Image
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest