- Joined
- Sep 24, 2007
- Messages
- 300
Part of the trigger:
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?
- 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
-
Conditions
-
Or - Any (Conditions) are true
-
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
-
If - Conditions
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?