(05-25-2013, 06:14 PM)junkfood2121 Wrote: Hey!
I need some hints on how to reduce or remove the lag when the player is triggering scripts. The lag makes the player know they are to expect something, which I do not like hehe.
I have not read so much about the map_cache files, but if I were to play through the entire mod, and then save the cache files it creates when releasing the mod, will it make the scripts lag less, or will it just bug out?
Thanks!
If you're playing sounds and using particle systems when the event is triggered, you need to preload them when entering the map
do this by using something like this:
void OnEnter()
{
PreloadParticleSystem("particle.ps");
PreloadSound("sound");
}