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

Destory Lighting Effect Crashes

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 ;_;
 
Top