• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[Trigger] Special effect doesn't show properly

Status
Not open for further replies.
Level 8
Joined
Sep 24, 2007
Messages
300
Part of the trigger:

  • Trigger
  • Event - (unit) takes damage (added manually from another trigger)
  • Conditions
  • Actions (part of it)
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Damage source)) Equal to T-34
          • (Unit-type of (Damage source)) Equal to Sherman
    • Then - Actions
      • Set ShootingLoc[4] = (Position of (Triggering unit))
      • Special Effect - Create a special effect at ShootingLoc[4] using war3mapImported\ShrapnelShards.mdx
      • Special Effect - Destroy (Last created special effect)
      • Custom script: call RemoveLocation(udg_ShootingLoc[4])
    • Else - Actions

Everything works ok. The shrapnel shards effect appears when unit takes damage, but the problem is that it doesn't appear on ALL units, but only on some.

So far the only thing I could discover is, that it usually doesn't appear on units which have bigger scale or something, but I'm not quite sure about it, as this shouldn't affect the action at all.


Anyone has a clue?
 
Level 5
Joined
Dec 18, 2007
Messages
205
are you sure all units are added which are on the map to the event?
because only if all units are in the events the action can take place for all units.

my suggestion to do this:

game time = 0.01 seconds -> add all units on the map to the trigger event.

then make a trigger which detects whena unit enters the map --> add it also to the trigger.

just remember not to add units multiple times.
 
Level 15
Joined
Dec 18, 2007
Messages
1,098
Why do you even bother creating a trigger just for some special effect? This leaks and causes massive lag if there are many units in the game.
Why not just try creating an ability based off Orb of Lightning/Orb of Slow and change the ability it triggers to some special effects thing.
The special effect might not show on units with larger scaling since their model probably blocked the special effect (it is created somewhere near the ground, not on the body of the unit). If so, use "Special Effect- Create Special Effect on Unit" and set the model to whatever your's is and the attachment point to chest or something (chest is good, its the body of the unit).
 
Level 8
Joined
Sep 24, 2007
Messages
300
Hmm thanks for the ideas. Will try them out.

It deletes it rite away, i think you must add a "wait" or generic timer if possible
It would delete them all the time the, not just sometimes.

@ bReathl3sS Damage system works preety well. I will follow this only if nothing else
helps.

@zack: I will try creating on unit or adding a special orb ability. This sounds well.
 
Status
Not open for further replies.
Top