- Joined
- Oct 18, 2007
- Messages
- 930
Need help on something!
Ok im working on my new spells for my new spellpack, but i got a prob here.
The missile changes height from one unit to another, but it does not change it's height on the way back.
Link to code and to map download: The Hive Workshop - A Warcraft III Modding Site
Please if you find something that could be done to fix this Height problem then please post.
Regards, Dynasti
PS: The spell is not completely done, it needs some flawing and documentation but i think it is readable
Ok im working on my new spells for my new spellpack, but i got a prob here.
The missile changes height from one unit to another, but it does not change it's height on the way back.
Link to code and to map download: The Hive Workshop - A Warcraft III Modding Site
Please if you find something that could be done to fix this Height problem then please post.
Regards, Dynasti
PS: The spell is not completely done, it needs some flawing and documentation but i think it is readable
JASS:
unit u // Unit User ( The Caster )
unit t // Unit Target ( The target that the missile will follow )
unit m // Unit Missile
group g=CreateGroup() // Group used for not bouncing on the same unit twice
player p // Player p
integer l // Integer Level
real z // Real Z, keeps track of the Height (Does not go lower than the missiles height )
real s=0 // Real Stolen, the amount of life the missile has stolen
integer c=0 // Integer Count, used to keep track on how many bounces the missile has done
integer mc // Integer Max Count used to keep track on the max bounces
effect e // Effect used to set the look on the missile
boolean ToPlayer=false // If set to true when the ball reaches it's target then the ball's motion will end
static integer array Index // An integer array that is used for the indexing system
static integer Total=0 // An integer wich keeps track of how many missiles there is in use
static timer Tim=CreateTimer() // Timer used in the interval
static real nX=0 // A Temp real used for getting the missile's X
static real nY=0 // A Temp real used for getting the missile's Y
static real nX2=0 // A Temp real used for getting the target's X
static real nY2=0 // A Temp real used for getting the target's Y
static real nA=0 // A Temp real used for getting the angle
static real nH=0 // A Temp real used for getting the height
Last edited: