• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Solved] Flying Light

Status
Not open for further replies.
Level 26
Joined
Mar 19, 2008
Messages
3,140
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