Frictional Games Forum (read-only)
Particle System - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Particle System (/thread-8330.html)



Particle System - X4anco - 05-29-2011

Hello peoples

I'm trying to create an area and the player walking into the area the particle activated but when I do it nothing happens
Code:
void OnStart()
{
    AddEntityCollideCallback("Player", "paperarea", "Function01", true, 1);
}

void Function01(string &in asParent, string &in asChild, int alState)
{
    CreateParticleSystemAtEntity("paper", "ps_dust_paper_blow.ps", "paper", false);
}

Nothing happens could your help?

-X4anco Big Grin




RE: Particle System - Ongka - 05-29-2011

{
CreateParticleSystemAtEntity("paper", "ps_dust_paper_blow.ps", "paper", false);
}

Do you have an object or area which is called "paper"?


RE: Particle System - Kyle - 05-29-2011

Since it is a paper blow particle system, perhaps it is blowing in the wrong direction causing it to be unnoticable? I recently tried a CreateParticleSystemAtEntity and it works fine. It had to do with rain and when it becomes activated.

The first space can be left blank. It is just the particle system's local name.


RE: Particle System - X4anco - 05-29-2011

An Object Big GrinBig GrinBig GrinBig Grin