HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Reducing Spell Delay

05-29-2006, 06:57 PM#1
StockBreak
Hi, is there ANY way to reduce the delay in a trigger like this (it's just an example):

Trigger:
Events - A unit starts the effect of an ability
Conditions - Ability being cast equal to JohnSmith
Collapse Actions -
Create a DummyUnit for Owner of Casting Unit etc...
Add DummyAbility to LastCreatedUnit
Order LastCreatedUnit to JohnSmithing TargetUnitOfAbilityBeingCast

The first time a spell like this is used, there is a bit of delay, any way to reducing/removing it? Thanks.
05-29-2006, 06:58 PM#2
Mezzer
Just give that ability to someone at map init and remove it, that will remove the lag
05-29-2006, 07:11 PM#3
blu_da_noob
Also create and immediately remove the dummy unit at map init, units also have a first-time lag.

Edit: You may also want to preload any special effects that the spell has, as these also have 'load lag'.

Eg.
Collapse JASS:
call Preload("wc3imported\\mymodel.mdx")
(Remember model names must be enclosed as strings and use double backslashes instead of single ones.