make unit non-attackable

Asdfblah1

New Member
Reaction score
10
I want to make an enemy not be able to attack certain buildings. This works if the building doesn't have the 'targetted as: structure'. But without that, the unit can't build the building.

I've tried adding to Stats - Targets Allowed in the Repair (Human) skill but had no luck.
 

vypur85

Hibernate
Reaction score
803
> certain buildings

Through trigger perhaps? Use conditions.

Code:
Event
 A unit is attacked
Condition
 Unit-type of (Triggering unit) Equal to YOURBUILDINGTYPE
Actions
 Unit - Order (Attacking unit) to Stop
 

asipo

New Member
Reaction score
15
Put the building category as an Ancient
Then make the enemy attack allow, tick the non-Ancient
 

Asdfblah1

New Member
Reaction score
10
I'll probably end up using something along vypur's suggestion. I was just hoping for a lazier solution D:
 

vypur85

Hibernate
Reaction score
803
> I was just hoping for a lazier solution

That is the laziest solution :p. Using triggers are easier than editing properties in Object Editor. And triggers are more flexible, easily modified.
 

Rainther

I guess I should write something of value here...
Reaction score
61
You can change the building armor type to Divine if you don't plan to use anywhere else and the units not possesing Chaos damage.
 
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