I were just wondering if it's possible to make anti-camping regions? I've tried, but I can't get it too work, would really love some help here!
My map would be pretty lame if I don't have any kind of anti-camping system. :P
Note! I did search before I posted, couldn't find any posts about anti-camping.
You should write what anti-camping involves, as this word can be taken in many different contexts. I would imagine having an array of points representing the last known location of every player, and a periodic timer that sees if that point has changed, and if so reset a timer for each player, could yield a tracking system of a player's movements and do what you're after. There's also an idle event to show slacking players, but that triggers the moment a unit is not doing anything (like SCV icon pop up status).
do a region check. say if unit is in region for a certain amount of time, kill him. I would have a script that says if a unit enters region, start a timer.. if it hits 0.. kill him... only problem is, you could have 200 timers, so you would have to be smart about it.
One problem tho, I don't know how to use the timers that good yet, but is it possible to make one for each player that enters the region? I mean, only the triggering unit should see the timer, noone else, and I can't seem to find the action for players that leaves an Region. :\
yeah just make an array type of timer, set its length to the max number of players, then when they enter the region
Start timer: Timer:yourarray[Triggering plaer]
and then if they leave the region
do the same to pause the timer.
(so that if they enter for 1 seconds, then leave, then come back say 9 seconds later, it dosnt kill them for "camping for 10 seconds" when they wernt.
Rollback Post to RevisionRollBack
Random Information
Tutorials - Map Development - Galaxy wiki
|Issues? PM me|
Heya!
I were just wondering if it's possible to make anti-camping regions? I've tried, but I can't get it too work, would really love some help here! My map would be pretty lame if I don't have any kind of anti-camping system. :P
Note! I did search before I posted, couldn't find any posts about anti-camping.
You should write what anti-camping involves, as this word can be taken in many different contexts. I would imagine having an array of points representing the last known location of every player, and a periodic timer that sees if that point has changed, and if so reset a timer for each player, could yield a tracking system of a player's movements and do what you're after. There's also an idle event to show slacking players, but that triggers the moment a unit is not doing anything (like SCV icon pop up status).
Only certain places on my map needs some kind of anti-camping trigger, like this region: Picture
I've tried with the event; "Any Unit Enters/Leaves Region" and the necessary actions, but I can't get it to work. :\
I dont know how to prevent units from being bunched up in that tunnel but the map looks good. What tileset is that, Mar Sara something?
What do you want it to do exactly? Kill off units that camp? Move then from the location? Periodic damage?
@IceWendigo: Go
Ye, it's Mar'sara ;>
@InsanitySektor: Go
I want to kill them, camping aint allowed :P
do a region check. say if unit is in region for a certain amount of time, kill him. I would have a script that says if a unit enters region, start a timer.. if it hits 0.. kill him... only problem is, you could have 200 timers, so you would have to be smart about it.
@NotDeadYet3: Go
That seemed to work! Ty :D
One problem tho, I don't know how to use the timers that good yet, but is it possible to make one for each player that enters the region? I mean, only the triggering unit should see the timer, noone else, and I can't seem to find the action for players that leaves an Region. :\
@toddii: Go
Dont use timer. Use event any unit become Idle, then condition: Unit is in anti-camp region, Action: Kill triggering unit
@progammer: Go
How does this event work? The unit have to stay still? Because, they could still camp if the event "resets" when the player move their unit. :\
EDIT1: Just tried it, seems to work pretty nice, but I think I need to add some max time to be inside, or else they would camp there forever :p
yeah just make an array type of timer, set its length to the max number of players, then when they enter the region
Start timer: Timer:yourarray[Triggering plaer]
and then if they leave the region
do the same to pause the timer.
(so that if they enter for 1 seconds, then leave, then come back say 9 seconds later, it dosnt kill them for "camping for 10 seconds" when they wernt.
@Molsterr: Go
Ok, I tried to do what you just said, but I'm too noob to understand it all. :P