CTF, stopping teams from picking up thier own flag?

Cdo

New Member
Reaction score
5
Hi i started a game that's pritty much a CTF, so each team has a flag and i was wondering how i can get it so that only one team can pick up a flag and only the other can pick up the other flag.
(basically i don't want teams running around with thier own flag to stop opponents from capturing it)
is thier a way to do this because i've tried and my trigger always ends up messy and dosn't work.
Help would be much appriciated:)
 

Hadezown

TH.net Regular
Reaction score
5
You can basically do this:

Code:
Events
    Unit - A unit Acquires an item

Conditions
    (Item-type of (Item being manipulated)) Equal to Team1Flag
    Or - Any (Conditions) are true
        Conditions
            (Owner of (Hero manipulating item)) Equal to Player 1 (Red)
            (Owner of (Hero manipulating item)) Equal to Player 2 (Blue)
            (Owner of (Hero manipulating item)) Equal to Player 3 (Teal)

Actions
    Hero - Drop (Item being manipulated) from (Hero manipulating item)

The players there are the ones trying to pick up their own flag, change it as needed. You'll have to be sure to make 2 different flag items for each team. Make a similar trigger for the other team.
 

Kuberr24

Well-Known Member
Reaction score
28
One annoying part of "drop item that is being picked up" is that the item doesn't get dropped in the original spot where it was picked up, but randomly somewhere around the hero. Therefore you need to add
Trigger:
  • Set TempPoint = (center of FlagRegion1)
    • Move position of (item being manipulated) to (TempPoint)
    • Custom Script: Call RemoveLocation(udg_TempPoint)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top