Frictional Games Forum (read-only)

Full Version: Particle System
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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

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

Do you have an object or area which is called "paper"?
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.
An Object Big GrinBig GrinBig GrinBig Grin