| 03-25-2005, 06:03 AM | #1 |
Hey, I was messing around with my AOS map, and, you know how on all those maps including DOTA, you get that 2 seconds annoying lag when choosing a hero? It happens because they put a region on the hero selection area and order it to move to a certain point when entering that region, and for some reason it causes a bit of an annoying lag. It's not a big issue but I found out an easy way to remove that lag, so I wanted to share it. Just make a region on the point you want to move the hero into and put this: Heroes Instant Move Events Unit - A unit Sells a unit Conditions Or - Any (Conditions) are true Conditions (Selling unit) Equal to YourHeroBuilding#1 <gen> (Selling unit) Equal to YourHeroBuilding#2 <gen> (Selling unit) Equal to YourHeroBuilding#3 <gen> Actions Camera - Pan camera for (Owner of (Sold unit)) to (Center of YourHeroSpawnPoint <gen>) over x seconds Unit - Move (Sold unit) instantly to (Center of YourHeroSpawnPoint <gen>) Special Effect - Create a special effect attached to the origin of (Sold unit) using Abilities\Spells\Other\Awaken\Awaken.mdl It won't cause lag this way Again, It's nothing special and there are users who probably already knows it, I'm just sharing it. -vile |
| 03-25-2005, 06:12 AM | #2 |
Good job |
| 03-25-2005, 07:40 AM | #3 |
So, what, the difference is the event, instead of "unit enters region" you use "unit sells an unit"? I heard the cause of this lag was "graphics" lag, because when a new unit enters the map, the game must load it's model/textures/stuff. The general solution for that is to preplace all the different units somewhere, so they load up already during map loading, and then remove them at start of game. |
| 03-26-2005, 08:19 AM | #4 |
dunno about that, but it reduced my lag to 0. |
| 03-29-2005, 04:30 AM | #5 | |
Quote:
|
| 05-06-2005, 06:02 AM | #6 |
Guest | I'm not sure i follow, how is the unit selling event going off? |
