• 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.

game crash

Status
Not open for further replies.
Level 28
Joined
Jan 26, 2007
Messages
4,789
There's no need to make the location variable arrayed.
Never use "every 0.01 seconds", 0.03 seconds works perfectly fine (this is probably what causes the crash).

  • Quietus start effect
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Quietus fireball (target point)
    • Actions
      • Set tempLoc1 = (Position of (Casting unit))
      • Set tempLoc2 = (Target point of ability being cast)
      • Set tempLoc3 = (tempLoc1 offset by 100.00 towards (Angle from tempLoc1 to tempLoc2) degrees)
      • Unit - Create 1 Quietus fireball for (Owner of (Casting unit)) at tempLoc3 facing tempLoc2
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Angle from tempLoc3 to tempLoc2) Less than 0.00
        • Then - Actions
          • Unit - Set mana of (Last created unit) to (360.00 + (Angle from tempLoc3 to tempLoc2))
        • Else - Actions
          • Unit - Set mana of (Last created unit) to (Angle from tempLoc3 to tempLoc2)
      • Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
      • Unit Group - Add (Last created unit) to Quietus_group
      • Custom script: call RemoveLocation(udg_tempLoc1)
      • Custom script: call RemoveLocation(udg_tempLoc2)
      • Custom script: call RemoveLocation(udg_tempLoc3)

  • Quietus timer
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in Quietus_group and do (Actions)
        • Loop - Actions
          • Set tempLoc1 = (Position of (Picked unit))
          • Set tempLoc2 = (tempLoc1 offset by 45.00 towards (Mana of (Picked unit)) degrees)
          • Custom script: call SetUnitX(GetEnumUnit(), GetLocationX(udg_tempLoc2))
          • Custom script: call SetUnitY(GetEnumUnit(), GetLocationY(udg_tempLoc2))
          • Custom script: call RemoveLocation(udg_tempLoc1)
          • Custom script: call RemoveLocation(udg_tempLoc2)

I tested it with multiple knights and queued the orders, didn't crash for me after these small fixes.
 
Status
Not open for further replies.
Top