• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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