| 02-01-2004, 10:02 AM | #1 |
how would i detect units enar a unit? every secont events lag, so thats a nono |
| 02-01-2004, 10:47 AM | #2 |
"Every second lags" isnt always the case. Yes, it may lag if you have many of those events, even in disabled triggers, but you need quite a few for the players to feel any lag. If you optimize your map, you would want to destroy any triggers that are/will remain unused anyway, which would include unused periodics. However, if you dont like the periodic trigger, you could try using the event: Unit Within Range - convert it JASS and replace the entered unit with a unit-variable. |
| 02-01-2004, 11:12 AM | #3 |
Theres atleast a couple of examples of custom aura systems in the Trigger & Utility repository, go search for them. I don't believe periodics cause lag (unless truly excessive periodics are used), it's memory leaks in periodics that cause lag, eliminate the leak and eliminate the lag. (this is also explained in the custom aura threads) |
| 02-02-2004, 01:04 AM | #4 |
the only way periodicds dont caused lag in long games is if you onyl use one for everything. (it can be done. ive done it :P) so i guess ill do that |
