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

Mhrmm... Lightning isn't appearing correctly on its heightmap.

Status
Not open for further replies.
Level 33
Joined
Mar 27, 2008
Messages
8,035
Try my system called Lightning Handling in my Signature.

Or, you can code this yourself instead giving the task to the add-on.

  • Custom script: set udg_Lightning = AddLightningEx(lightningName, booleanShow, x1, y1, z1, x2, y2, z2)
Where '1' is at Source and '2' is at Target.

To get Z value, you can do this;
  • Set Source = (YourSourceUnit)
  • Set TempLoc = (Position of (Source))
  • Custom script: set udg_z1 = GetLocationZ(udg_Source) + GetUnitFlyHeight(Source)
  • Custom script: call RemoveLocation(udg_Source)
Repeat this for z2 (Target).

Global Variables:
TempLoc - Point
x1, x2, y1, y2, z1, z2 - Real
Lightning - Lightning

Usually using other add-on (except vJASS) will only make the Trigger Editor worse.
Things like USMWESFAWEADADAD or EGUI will fked up your trigger.
 
Status
Not open for further replies.
Top