• 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.

Help wit a lag spike problem PLEASE HELP ME!!!

Status
Not open for further replies.
Level 7
Joined
Oct 8, 2005
Messages
298
Ok heres the deal; i have an ability that when cast creates a dummy unit and gives that unit an ability to cast. Only problem is that the ability he casts has 850 levels (I cannot reduce the number of levels). The ability the hero casts has 8 levels and i had to create a custom 850 level ability for each level of the hero ability. Anyways that was simple enough but heres the problem. The first time a unit an ability wit 850 levels on it there is a HUGE lag spike that lasts about 15 seconds or so. Since i had to use a different ability for each level of the 8 level hero ability it causes that lag spike for the first time u use the ability on each level. Anyways my question is is their anyway to get rid of this lag spike? Any help will be MUCH appreciated.
 
Level 10
Joined
Jul 2, 2004
Messages
690
why in the world do you need 850 levels in a spell? post the spell and we will see what we can do.
 
Level 7
Joined
Oct 8, 2005
Messages
298
Ok its a lot like the spell from Tides of Blood, Bindu, were the hero leaps forward to a target location and deals damage to units along the way. The way i did it is i created a spell to deal the damage based off of impale (so it would deal both damage and stun but of course i got rid of the sending units flying effect that would look stuiped in a spell like this). I had to create 1 level for every possible range off of the blink ability and the blink has a max range of 850. So i gave impale 850 levels (1 level for each range) and then set a trigger that would create a dummy unit at the position of the casting unit when a unit begins casting blink. I then give the dummy unit impale using triggers and set the level of impale to the distance between the point of the unit casting blink and the target point of blink. The dummy unit then casts impale to the target location so it will deal damage and stun. The good thing is that theirs only a lag spike the first time you use the ability and then its lag free for the rest of the time, but still that 1 lag spike is a huge deal because if ur comp isnt halfway decent it might lag u out.

Hmm would giving the dummy unit the impale ability to begin with possibly remove the lag spike you guys think? Thanks for trying to help me with this by the way.
 
Status
Not open for further replies.
Top