• 🏆 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!

Why does this trigger crash my game?

Status
Not open for further replies.
Level 3
Joined
Jan 11, 2018
Messages
23
  • Rock Death
    • Events
    • Conditions
      • (Destructible-type of (Dying destructible)) Equal to The Earth
    • Actions
      • Set RNG = (Random integer number between 1 and 100)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • RNG Greater than 90
        • Then - Actions
          • Set OreSpawn = (Position of (Dying destructible))
          • Destructible - Create a Iron at OreSpawn facing (Random angle) with scale 1.00 and variation (Random integer number between 1 and 6)
          • Trigger - Add to Iron DEATH <gen> the event (Destructible - (Last created destructible) dies)
          • Special Effect - Create a special effect at OreSpawn using Abilities\Spells\Items\AIvi\AIviTarget.mdl
          • Special Effect - Destroy (Last created special effect)
        • Else - Actions
  • Iron DEATH
    • Events
    • Conditions
    • Actions
      • Set ExpendablePoint = (Position of (Dying destructible))
      • Special Effect - Create a special effect at ExpendablePoint using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Item - Create Iron Ore at ExpendablePoint
      • Destructible - Remove (Dying destructible)
      • Custom script: call RemoveLocation(udg_ExpendablePoint)
My game crashes every time an Iron destructible dies. I can't really seem to locate the reason for this happening. Any help?
 
Status
Not open for further replies.
Top