• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to preload Special Effects ? {not to lag the first time they're used}

Status
Not open for further replies.
Level 3
Joined
Dec 30, 2008
Messages
38
It's very easy. Create a new trigger that will start at Map Initialization and choose a custom script as an event type in the next:
call Preload("Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
where ""Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl" is your model's path (if it's imported it should be like war3mapimported\\ALaggyEffect.mdl)
Also note that preload need to have 2 bars insead of one like "\\" and the model's formal must be .mdl and not .mdx
To Hide the preload lag, you can start the cinematic mode for 2 seconds.
Preloading spells is more complicated however you didn't ask if you still need let me know.
 
Level 17
Joined
Nov 18, 2008
Messages
1,538
I don't think there is a way to do this. You can make sure the trigger is as effective and leak free as can be to avoid smooth use.
 
Level 8
Joined
Nov 9, 2008
Messages
502
I'm just guessing here but you could try triggering each effect to play at the start of the map. Just give 5 seconds before players can do anything while you play the effects and wait for laggers.
 
Level 3
Joined
Mar 25, 2009
Messages
32
you can add special effect at somewhere on the map and then destroy it at begining or use
  • Custom script - call Preload(Your special effect path)
 
Status
Not open for further replies.
Top