Frictional Games Forum
Preloads doesnt really work :S - Printable Version

+- Frictional Games Forum (
+-- Forum: Amnesia: The Dark Descent (
+--- Forum: Custom Stories, TCs & Mods - Development (
+---- Forum: Development Support (
+---- Thread: Preloads doesnt really work :S (/thread-15371.html)

Preloads doesnt really work :S - neocrawler - 05-11-2012

Heey everyone,
I was kinda getting ennoyed that preloads doesnt really work.
Proberly I do it wrong heres and example how I do it.
Quote: AddEntityCollideCallback("Player", "ScriptArea_4", "Collide_ScriptArea_4", true, 1);

void Collide_ScriptArea_4(string &in asParent, string &in asChild, int alState)

RE: Preloads doesnt really work :S - Putmalk - 05-11-2012

Preloads don't spawn a particle system, you're looking for:

CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);


Preloading is only done in the OnEnter function, and I don't necessarily know the purpose of it - I do believe it removes the lag that happens when events fire.

RE: Preloads doesnt really work :S - neocrawler - 05-11-2012

Okay thanks didnt know that Big Grin