AFK Detection
Jun 29 2008, 8:08 pm
By: 49281358723941702706  

Jun 29 2008, 8:08 pm 49281358723941702706 Post #1



Is there any way you can make it so that if a player is afk for a few minutes then those units go to another player? How would you do the triggering to detect if a player hasn't moved in a few minutes? I want this feature for a map I'm working on. Any help is appreciated. Thank you.



None.

Jun 29 2008, 8:23 pm DT_Battlekruser Post #2



It depends on the context of the map. If each player has only one unit, it would be relatively simple to detect when it moves. However, if it is a melee style map with many different units, it becomes more difficult. What sort of map are you trying to implement this with?



None.

Jun 29 2008, 9:01 pm Hug A Zergling Post #3



Couldn't you just use "Player(?) Brings (Unit) to Anywhere" and a timer, and have it trigger not giving units to another player somehow? I don't know, im not looking at a trigger list or anything. This is a good idea tho, AFK detection. problem is tho, what if the person says "brb" and the other players are fine w/ that?



None.

Jun 29 2008, 9:36 pm 49281358723941702706 Post #4



Most of the time it will only be 1 unit, however a few times there may be a couple more units.



None.

Jun 29 2008, 9:52 pm Hug A Zergling Post #5



Well my garbled answer of a method would work, i think



None.

Jun 29 2008, 10:41 pm Untelligent Post #6



You could probably move a location to the unit at the start of the game, and set a timer to a minute or two. If the unit is in that location at the end of the timer, do whatever. You'd have to move the location again if the unit isn't in the location, and restart the timer.

Making the location really small would probably be a good idea, to help prevent the chance of the unit ending up inside it when the timer goes off.

Maybe add a beacon somewhere that turns on a switch that prevents that from happening in case the player needs to leave for a bit and the others are fine with it.



None.

Jun 30 2008, 2:21 am DT_Battlekruser Post #7



Quote from Gamma
Most of the time it will only be 1 unit, however a few times there may be a couple more units.

If one player never has more than one non-unique unit (unit of the same type), then center a location on each unit owned by the player. If the unit leaves the location ('brings 0'), then recenter the location and reset a timer or otherwise log that the player has been active.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:25 am]
Symmetry -- why do the oligarchs want our mapping strategies???
[03:24 am]
Symmetry -- the question is why though
[01:10 am]
Butch -- made me feel really sad and stupid and fat
[01:10 am]
Butch -- I got duped by one and replied and then realized after
[11:26 pm]
Sie_Sayoka -- the turings have tested
[03:07 pm]
UndeadStar -- https://staredit.net/topic/18961/ <= wow, if there wasn't a capital letter on almost every word in the title, and a link in the signature, I may not have guesses it's an AI bot. I don't know much about map editing, but the content may even be relevant enough to be kept.
[04:16 am]
lil-Inferno -- fart screen
[2026-11-09. : 3:49 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: :wob: maybe not replaced, just add a discord applet below the shoutbox imo
split screen. Left side shoutbox, right side discord meme channel
[2026-11-08. : 10:23 pm]
Ultraviolet -- :wob: maybe not replaced, just add a discord applet below the shoutbox imo
[2026-11-08. : 9:24 pm]
O)FaRTy1billion[MM] -- :wob:
Please log in to shout.


Members Online: Symmetry, Butch