• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Distance problem

Status
Not open for further replies.
Level 3
Joined
Sep 26, 2012
Messages
39
When I set 2 offset point 300 distance away from target point of ability being cast( in opposite ways ) and I use a 600 radius target image, the size of the target image is still way bigger than what my trigger suggests. What am I not understanding?

Also, is there a way to change the z offset of a lightning effect?
 
Level 3
Joined
Sep 26, 2012
Messages
39
I feel pretty silly right now... :) Thanks, that's what I needed! Any idea for the lightning with the z offset?
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
you need to use custom script for that:
JASS:
native AddLightningEx               takes string codeName, boolean checkVisibility, real x1, real y1, real z1, real x2, real y2, real z2 returns lightning
native MoveLightningEx              takes lightning whichBolt, boolean checkVisibility, real x1, real y1, real z1, real x2, real y2, real z2 returns boolean

x/y/z 1 are coordinates from, x/y/z 2 are coordinates too(this doesnt matter that much anyway)
 
Status
Not open for further replies.
Top