Hey there.
I have 2 spells in my map that have some problems the first time(s) when I cast them in my map.
The first spell creates a dummy unit that will summon a cloud using the Dragonhawk's cloud spell. The cloud model is a custom model.
The second spell also uses a custom (sfx) model that will appear on the target on impact. It's just a normal Holy Light spell with a different model.
Both those spells cause a little lagspike the first time I cast them, and the 2nd spell stays a little laggy everytime I cast it however the first time it's much worse.
Someone told me about a Preload function for in the code. Is there someone that could describe what that is exactly, and how to use it?
Thanks in advance,
I have 2 spells in my map that have some problems the first time(s) when I cast them in my map.
The first spell creates a dummy unit that will summon a cloud using the Dragonhawk's cloud spell. The cloud model is a custom model.
The second spell also uses a custom (sfx) model that will appear on the target on impact. It's just a normal Holy Light spell with a different model.
Both those spells cause a little lagspike the first time I cast them, and the 2nd spell stays a little laggy everytime I cast it however the first time it's much worse.
Someone told me about a Preload function for in the code. Is there someone that could describe what that is exactly, and how to use it?
Thanks in advance,