• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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 39
Joined
Feb 27, 2007
Messages
4,992
"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