Land Grab Help

Atticus

New Member
Reaction score
2
I was wondering how I might make it so when a unit comes into an area he slowly gets control of that area, if him and a teammate are there it increases a little bit faster, and so on. And then if an enemy player comes into that area it stops you from gaining control of that area. I probably described this very poorly. This is very similar to War from Call of Duty, or Territories from Halo. If anyone here as played those. I'm not looking for the triggers just a little direction. Thanks in advance.
 

Heresme

Member
Reaction score
4
Uh, I can give you a rough idea of what to do, but nothing too specific.

You'd need a timer.
Event
when unit comes within range of object
Condition
Unit owner is red
Variable 'Capture' is neutral or Variable 'Capture' is blue team
Action
Start countdown timer Red Capture
Set Variable 'Capture' to RedCapturing


And
Event
When unit comes within range of object
Condition
Unit is owned by Blue
Variable 'Capture' is RedCapturing
Action
Pause Countdown 'Timer Red Capture'



This is only a very rough guide. Someone else might have a better idea.
 

Atticus

New Member
Reaction score
2
Alright. That will work for stopping him from getting the zone but how to increase how fast it claims it by having more people in the area??
 

Tru_Power22

You can change this now in User CP.
Reaction score
144
Well, when another unit enter the region, reduce the time left on a countdown timer.
 

Bloodydood

New Member
Reaction score
14
Takes several triggers:
Point setup at initialization.
Red capturing neutral, (Uncontested).
Red capturing neutral, (Uncontested Countdown Increase).
Red capturing neutral, (Contested).
Red capturing neutral, (Contested Pause/Decrease).
Red clearing blue control, (Uncontested).
Red clearing blue control, (Uncontested Countdown Increase).
Red clearing blue control, (Contested).
Red clearing blue control, (Contested Pause/Decrease).

Double that for Blue team's triggers (Except the point setup). (17 triggers)

Uses unit group, integer, and point variables:

Control_RedGroup[Number of Points Able To Be Controlled]
Control_BlueGroup[Number of Points Able To Be Controlled]
Control_RedInteger[Array Number of Points Able To Be Controlled]
Control_BlueInteger[Array Number of Points Able To Be Controlled]
Control_Point[Array Number of Points Able To Be Controlled]

Each integer either increases or decreases per point per team given the conditions.

Of course there's always easier ways to do things but that's my setup for it.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top