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

I need help creating a math function

Status
Not open for further replies.
Level 5
Joined
Apr 8, 2008
Messages
88
I am currently creating a spell with triggers, and i would need a trigger / or help.

The spell i am making, is a missile spell, and i would need a function so the missile get's a smooth "ride" (an example: 3x^2 -5x)
however i need this function to work for every value from 200 to 700. is that possible?

Or else, is it possible to create an integer value in a smart way to fix it?

Here's an image of how would like it to be:

attachment.php


If you can help me so it works, you'll recieve + rep ;)
 

Attachments

  • wc3_Missile.jpg
    wc3_Missile.jpg
    29.9 KB · Views: 133
Level 13
Joined
Jun 1, 2008
Messages
360
I made a map with a spell that uses such a function.
Change the parameters to your wishes.

For example:
If you want the missle to describe a larger "circle" (kind of), use
  • Set Missle_OffsetTransverse = ((300 x Missle_RealIndex) - (50.00 x (Missle_RealIndex x Missle_RealIndex)))
instead of
  • Set Missle_OffsetTransverse = ((200.00 x Missle_RealIndex) - (50.00 x (Missle_RealIndex x Missle_RealIndex)))
etc.
 

Attachments

  • Missle.w3x
    18.9 KB · Views: 46
Status
Not open for further replies.
Top