• 🏆 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!

An upside down triggering

Status
Not open for further replies.
Level 11
Joined
Dec 21, 2008
Messages
766
Hello! I've maded a spell an chargeing spell it works in game but its only one problem, if I cast it far away he runs a very small part, and when I cast it close he runs far as hell.
Can someone tell me why?
It is in GUI an its not supost to be for an public game.
Warning
Evryting is totaly a mess... Time[1] is speed Speed is time and many other things.
 

Attachments

  • Charge.w3x
    23.3 KB · Views: 39
Last edited:
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Set CG_NumberPoint[1] = ((Distance between CG_Point[1] and CG_Point_Dummy[1]) / 100.00)
  • Set CG_Speed[1] = (CG_NumberPoint[1] + CG_Speed[1])
  • CG_Speed[1] Greater than or equal to 200.00
The further you cast the spell, the larger CG_NumberPoint[1] will be, and the shorter time it takes for it to reach 200.

You see:

Set CG_NumberPoint[1] = 6 (cast far away)
versus
Set CG_NumberPoint[1] = 1 (cast near)

After 10 loops, CG_Speed[1] will be 72 vs 22.
 
Status
Not open for further replies.
Top