• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Lightning effect height problem

Status
Not open for further replies.
Level 10
Joined
Jun 6, 2007
Messages
392
[SOLVED] Lightning effect height problem

I'm creating a triggered life drain spell. Everything else works, but I'd like the lightning to be displayed correctly also when the spell is cast on flying units. So I do the following:
JASS:
set casterX = GetUnitX(this.caster)
set targetX = GetUnitX(this.target)
set casterY = GetUnitY(this.caster)
set targetY = GetUnitY(this.target)
set casterZ = GetUnitFlyHeight(this.caster)
set targetZ = GetUnitFlyHeight(this.target)
                
call MoveLightningEx(this.light, true, casterX, casterY, casterZ, targetX, targetY, targetZ)
Still the height is too low.

SOLVED by using ZLibrary.
 
Status
Not open for further replies.
Top