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

[Solved] Flying Light

Status
Not open for further replies.
Thread name should be changed into 'Lightning height' - or somethign smilar.
There was thread yesterday or so where guy was asking about setting lightning height too.
JASS:
native MoveLightningEx              takes lightning whichBolt, boolean checkVisibility, real x1, real y1, real z1, real x2, real y2, real z2 returns boolean
Where z1 & z2 sets the height of given lighting effect and x & y parameters are coordinates.

GUI usage:
Let's say you have created lightning effect ealier, set to Lightning variable and now you want to move it/change height
  • Set caster = <unit1>
  • Set target = <unit2>
  • Custom script: call MoveLightningEx(udg_Lightning, true, GetUnitX(udg_caster), GetUnitY(udg_caster), 50, GetUnitX(udg_target), GetUnitY(udg_target), 100)
Lightning 'ends' will be set into following height values: first one to 50, second one to 100.
 
Last edited:
Status
Not open for further replies.
Top