• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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

Status
Not open for further replies.
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.
 
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.
 
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.
 
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.
Back
Top