• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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.
 
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
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: 55
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
 
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
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: 65
Status
Not open for further replies.
Back
Top