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

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