![]() | |
| | #1 |
![]() Join Date: Mar 2007 Location: Mushroom Kingdom
Posts: 1,392
![]() ![]() ![]() ![]() ![]() ![]() | Memory leaks in spells I had spells working but i then tried to fix the memory leaks in the spells, and now they wont work. I think it has something to do with the matching unit but i cant think of how to fix it. Heres the trigger pelase help. Mass Bloodlust Events Unit - A unit Finishes casting an ability Conditions (Ability being cast) Equal to Mass Bloodlust Actions Set temppoint = (Position of (Casting unit)) Set tempgroup = (Units within 1500.00 of temppoint matching (((Matching unit) belongs to an ally of (Owner of (Casting unit))) Equal to True)) Unit Group - Pick every unit in tempgroup and do (Actions) Loop - Actions Unit - Create 1 Dummy caster for (Owner of (Casting unit)) at (Position of (Picked unit)) facing Default building facing degrees Unit - Add Bloodlust to (Last created unit) Unit - Add a 0.01 second Generic expiration timer to (Last created unit) Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Picked unit) Custom script: call DestroyGroup( udg_tempgroup ) Custom script: call RemoveLocation( udg_temppoint ) |
| | |
| | #2 |
![]() Join Date: Apr 2007
Posts: 2,436
![]() ![]() ![]() | Re: Memory leaks in spells it should be units within 1500 of casting unit, not matchin unit |
| | |
| | #3 |
![]() Join Date: Mar 2007 Location: Mushroom Kingdom
Posts: 1,392
![]() ![]() ![]() ![]() ![]() ![]() | Re: Memory leaks in spells it says units within 1500 of tempoint wich is set to the position of casting unit. >< matching unit reffering to the units that will be picked in the group. ------------------------- A wise man once said, When you know whats good for people more then they do, you have the right to impose your will on those people. As a mod of pollama, i have that right. [Only registered and activated users can see links. ] Last edited by luigi_fan64; 06-06-2008 at 11:48 PM. |
| | |
| | #4 |
![]() Join Date: Mar 2007 Location: Mushroom Kingdom
Posts: 1,392
![]() ![]() ![]() ![]() ![]() ![]() | Re: Memory leaks in spells update the problem was the experation timer of .01 seconds lol, the dummies did not have enuf time to cast the spell. |
| | |
| | #5 |
![]() Join Date: Apr 2007
Posts: 2,436
![]() ![]() ![]() | Re: Memory leaks in spells silly you |
| | |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Warcraft 3 Terminology | Kuramawhip | Guides | 2 | 08-22-2008 09:04 PM |
| Battle Mages (12) | Dark.Revenant | WarCraft Maps | 1 | 08-21-2008 09:04 AM |
| Strategy in Battle Mages (GUIDE) | Echonian | BattleMages | 26 | 07-31-2008 07:28 PM |
| Suggestion: Better scaling of spells and abilities in higher levels | Halb | Denied Submissions | 0 | 04-02-2008 03:43 PM |