• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Help with trigger.

Status
Not open for further replies.
Level 1
Joined
Aug 30, 2018
Messages
1
the trigger i have is (Event When player owned unit is attacked/ condition: Attacking unit is equal to Units of type/ Action: set base damage of attacked unit to attacked unit +2) and i have one for each tower type so its creating MASSIVE lag. How can i keep the triggers but have a less laggy event?
 
Level 42
Joined
Feb 27, 2007
Messages
5,328
"Units of type..." is a group search so doing that over the whole map for multiple triggers every time something is attacked is resource intensive. You are also probably leaking groups and points.

Post your full trigger here with the Trigger tags (quote my post to see how) so we can better suggest what you should do. I think you need to do this instead:

  • Conditions
    • (Unit-type of (Attacking Unit)) equal to YOUR_TOWER
 
Status
Not open for further replies.
Top