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

Destory Lighting Effect Crashes

Status
Not open for further replies.
Level 3
Joined
Jan 31, 2023
Messages
12
When i try to destroy the lighting effect it crashes::
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Lightning - Create a Chain Lightning - Primary lightning effect from source (Position of Mountain King 0000 <gen>) to target (Position of Mountain King 0001 <gen>)
      • Lightning - Change color of (Last created lightning effect) to (0.00 0.00 1.00) with 1.00 alpha
      • Set lcl = (Last created lightning effect)
      • Wait 3.00 seconds
      • Lightning - Destroy lcl
And this is the move trigger
  • Untitled Trigger 001
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • Lightning - Move lcl to source (Position of Mountain King 0000 <gen>) and target (Position of Mountain King 0001 <gen>)
All I had this triggers yet it crashes somehow
 
Level 3
Joined
Jan 31, 2023
Messages
12
Okey the problem is I had to add '' Custom script: set udg_lcl[udg_integer] = null '' after destroy lighting effectso i make it lcl arrayable and create an integer for it please close this thread ;_;
 
Status
Not open for further replies.
Top