Need help whit anti Team Kill system :)

Tholdalf

New Member
Reaction score
2
How does i do to make units on the same alliance not to be able to attack etch other even whit the units atack command?? :confused: help would be appreciated :rolleyes:
 

Frozenwind

System maker
Reaction score
99
Code:
Events
    Unit is attacked
Condition
    Owner of attacking unit is a ally of Owner of attacked unit equal to true
Actions
    Unit - order attacking unit to stop

frozenwind.
 

Idontknowyou

New Member
Reaction score
33
Better to use the event " Unit is issued an order targeting a unit" with the conditions " Issued order is equal to attack" and " Owner of ( target unit of Issued order" is an anlly of (Unit being issues order)" ( The last part of that condition is called, I forget what you would use for that)

that way, the unit will be stoped before attacking.
 

The_Kingpin

Member (Who are you and why should I care?)
Reaction score
41
Or, you could simply change the unit's targets allowed to enemy.
 

Frozenwind

System maker
Reaction score
99
dude, "is attacked" isn't equal to "take damage".
This is the order it runs:
you click on enemy: issued order targgeting object
you start attack animation: is attacked
enemy takes the damge: take damage

So "Is Attacked" would be best if they're allowed to run to the unit.

frozenwind.
 

Tholdalf

New Member
Reaction score
2
Ok got it to work thanks for the help :)..btw i might try that return damage to attacker thing ;)
 

Idontknowyou

New Member
Reaction score
33
dude, "is attacked" isn't equal to "take damage".
This is the order it runs:
you click on enemy: issued order targgeting object
you start attack animation: is attacked
enemy takes the damge: take damage

So "Is Attacked" would be best if they're allowed to run to the unit.

frozenwind.

really? I never knew that, thanks.
 
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