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

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