Animations and Particles - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Animations and Particles (/thread-8776.html) |
Animations and Particles - Fnoigy - 06-24-2011 Hey everyone So I'm at the tail end of making a custom story. To really make a certain event happen, I had to muck around and create a new particle entity that makes a better explosion. I can place it and see it in the editor, and I can see it if I save it in a map right in front of the spawn location, but I can't seem to make the script create it. I have the file (ps_boom.ps) in a "Particles" folder in my custom story folder, which seems to be where it's supposed to go. Any idea what I'm missing? I'm worried this will make some problems for the couple of other custom entities I'm including. Also, I'm trying to get ol' ripped-face to play his slashing animation after he reaches a patrol node, but I can't seem to make him obey the animation part. For example, I have the code: AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_20", 10.0f, "SwingClaws01"); He will go to the right node, he'll pause for the assigned 10 seconds, but he won't play the animation, not that one or any other I've specified. I even copied a code from the main game files that included the animation part, and still no dice. What am I doing wrong here? RE: Animations and Particles - Kyle - 06-24-2011 To your first question, do you want the particle system to happen when you want it to with using scripting? Spoiler below!
I'm not sure if this is what you're looking for, but if this is, make sure that you don't place the particle effect in the level editor because you can just easily script it in. :/ RE: Animations and Particles - Fnoigy - 06-24-2011 No, I already knew that. The problem is that doesn't seem to be able to create a custom-made particle effect. The only way I CAN get it to is to put the particle effect into the main game directory, but it looks like others have done it while keeping the file in their custom story directory. In other words, CreateParticleSystemAtEntity("", "ps_boom.ps", "whateverentityichose", false); doesn't work if I try to keep the particle system in a Particles folder within my custom story directory. Only if I keep the particle system in the main game particle folder, which I swear isn't supposed to be necessary. RE: Animations and Particles - MrBigzy - 06-24-2011 I've always had to put them in the main directory, the editor doesn't recognize them otherwise (or the game). Maybe you can, but I'm not sure how other than redirecting resources folders in resources.cfg. |