• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Lightning Effect Coordinates

Status
Not open for further replies.
I think that there are only four functions available to GUI for lightnings, and they all use locations to verify the points so there is no z-input. The BJ functions simply use the GetLocationZ value of the location.

I'm thinking you would have to either manipulate the location height, or use custom script with the functions stated above.
 
Yeah I understand how to put lines of custom script in GUI but I don't know the function that lets you set the Z
 
JASS:
native AddLightningEx takes string codeName, boolean checkVisibility, real x1, real y1, real z1, real x2, real y2, real z2 returns lightning

JASS:
native MoveLightningEx takes lightning whichBolt, boolean checkVisibility, real x1, real y1, real z1, real x2, real y2, real z2 returns boolean

As Cokemonkey11 said.
 
The boolean? That determines whether or not the lightning effect will be displayed if the location if visible for the viewing player (basically whether or not the location is clouded by the fog of war).
 
It's pretty hard to determine whether or not an entire streak of lightning is visible or not. It probably uses some strange mechanism for detecting whether it is "visible" or not. As everybody has said, use true.
 
Status
Not open for further replies.
Back
Top