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.
[05:01 pm]
NudeRaider -- Vrael
Vrael shouted: because you perfectly guessed SEN's root password and we cant have that displayed all over the shoutbox
given Moose's post I don't think he had to guess. ^^
[04:53 pm]
NudeRaider -- lil-Inferno
lil-Inferno shouted: Nude why'd you delete my shout
why not? :awesome:
[04:26 pm]
Vrael -- because you perfectly guessed SEN's root password and we cant have that displayed all over the shoutbox
[03:58 pm]
lil-Inferno -- sadjfjkasdhfijsadhmfcjhsdajkvfmjadslkfhjsdkahf
[03:58 pm]
lil-Inferno -- Nude why'd you delete my shout
[03:35 pm]
NudeRaider -- never trust a statistic you haven't forged yourself
[04:37 am]
Ultraviolet -- 80% of statistics are made up on the spot
[2026-6-08. : 8:05 pm]
Symmetry -- 50% of strings in starcraft are references
[2026-6-07. : 1:59 am]
RIVE -- Lots of fun little nods to different works of others in the cheats too.
[2026-6-06. : 5:17 pm]
Oh_Man -- so i was today years old wen i learned rebel yell starcraft mission is named after a billy idol song. makes me wonder wat other missions are named after songs
Please log in to shout.


Members Online: NudeRaider