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

Help with lightning

Status
Not open for further replies.

Edy

Edy

Level 9
Joined
Nov 21, 2015
Messages
226
  • Lightning - Move PH_lighting[PH_Temp] to source PH_Point1 and target PH_Point3
The event is periodic- every 0.03 secs. It attaches from "SOURCE" of caster to "TARGET" of my dummy (shuriken). I need it to move from hand,right (PH_Point1) to chest (PH_Point3). I sadly can only use GUI, if you can do it via custom script JASS code that'd be rad. + rep and credits to the responder.

If this can't be done then a simple height of 50 is welcome.
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
Lightning effects can't be attached to attachment points. The best you can do is the 50 height. If you set the 'true' to 'false' I believe it will show the lightning in the fog of war.
JASS:
call MoveLightningEx(udg_PH_lighting[udg_PH_Temp], true, GetLocationX(udg_PH_Point1), GetLocationY(udg_PH_Point1), GetLocationZ(udg_PH_Point1) + 50.00, GetLocationX(udg_PH_Point3), GetLocationY(udg_PH_Point3), GetLocationZ(udg_PH_Point3) + 50.00)
 
Last edited:
  • Like
Reactions: Edy

Edy

Edy

Level 9
Joined
Nov 21, 2015
Messages
226
Lightning effects can't be attached to attachment points. The best you can do is the 50 height. If you set the 'true' to 'false' I believe it will show the lightning in the fog of war.

call MoveLightningEx(udg_PH_lighting[udg_PH_Temp], true, GetLocationX(udg_PH_Point1), GetLocationY(udg_PH_Point1), GetLocationZ(udg_PH_Point1) + 50.00, GetLocationX(udg_PH_Point3), GetLocationY(udg_PH_Point3), GetLocationZ(udg_PH_Point3) + 50.00)
 

Attachments

  • Yikes.png
    Yikes.png
    41.5 KB · Views: 41

Edy

Edy

Level 9
Joined
Nov 21, 2015
Messages
226
call MoveLightningEx(udg_PH_lighting[udg_PH_Temp], true, GetLocationX(udg_PH_Point1), GetLocationY(udg_PH_Point1), GetLocationZ(udg_PH_Point1) + 50.00, GetLocationX(udg_PH_Point3) - There is one but when I add another one " )) " at the end of the line it causes :Not enough arguments given to function: MoveLightningEx
 
Level 7
Joined
Apr 17, 2017
Messages
316
call MoveLightningEx(udg_PH_lightning[udg_PH_Temp], true, GetLocationX(udg_PH_Point1), GetLocationY(udg_PH_Point1), GetLocationZ(udg_PH_Point1) + 50., GetLocationX(udg_PH_Point3), GetLocationY(udg_PH_Point3),
GetLocationZ(udg_PH_Point3) + 30.)
 
  • Like
Reactions: Edy

Edy

Edy

Level 9
Joined
Nov 21, 2015
Messages
226
Works now, Pyro did everything right, the y z for the second part of the script didn't copy for the last script. It's perfect :) thanks for the help
 

Attachments

  • works.png
    works.png
    389.9 KB · Views: 51
Status
Not open for further replies.
Top