| 07-30-2006, 06:51 PM | #1 |
Any idea why my game freezes for about a second when unit is created from the trigger below? No where else in this trigger does it lag except when the shadow spirit is created. Trigger: Actions
![]() Unit - Replace Perin 0010 <gen> with a Dark Knight using The new unit's max life and mana
![]() Unit - Change color of (Last replaced unit) to Purple
![]() Player - Change color of Player 1 (Red) to Purple, Changing color of existing units
![]() Unit - Hide Dark Knight 0018 <gen>
![]() Camera - Lock camera target for Player 1 (Red) to (Last replaced unit), offset by (0.00, 0.00) using Default rotation
![]() Special Effect - Create a special effect at (Position of (Last replaced unit)) using Abilities\Spells\Human\Resurrect\Resurrecttarget.mdl
![]() Set Hero1 = (Last replaced unit)
![]() Selection - Select Hero1
![]() Unit - Order Valin 0011 <gen> to Move To (Center of Region 011 <gen>)
![]() Unit - Turn collision for Valin 0011 <gen> Off
![]() Wait 2.50 seconds
![]() Unit - Create 1 Shadow Spirit for Player 1 (Red) at (Center of Region 065 Copy 6 <gen>) facing Default building facing degrees
![]() Special Effect - Create a special effect at (Position of (Last created unit)) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
![]() Set Fam1 = (Last created unit)
![]() Unit - Order Fam1 to Right-Click Hero1 |
| 07-30-2006, 07:13 PM | #2 |
Is this the first time you create a shadow spirit? In that case, the lag might be due to the game having to load all it's abilities and model; you can fix this by preplacing the unit on the map, so it gets loaded as the map loads, and then removing it with a trigger when the game starts. |
| 07-30-2006, 07:13 PM | #3 |
First time the unit is loaded? Create it at start up and destroy it, should solve it. |
