How to make wind blow - 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: How to make wind blow (/thread-5525.html) |
How to make wind blow - trancedj - 11-24-2010 Hi every one. I want to add a wind blow with a ps_dust particle in my outdoor map. How do I make that? what about the script? Thanks RE: How to make wind blow - LoneWolf - 11-24-2010 (11-24-2010, 08:06 PM)trancedj Wrote: Hi every one. Use this script CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS); put it in a script area. eg. //////////////////////////// // Run first time starting map void OnStart() { AddEntityCollideCallback("Player", "script1", "Collidescript1", true, 1); } void Collidescript1(string &in asParent, string &in asChild, int alState) { CreateParticleSystemAtEntity("name of ps file", "ps file actual name", " entity name", "i think this means if you want it to play again not sure" } If you dont understand name of ps file and ps file actual name and entity name. Then just call them all the same thing, eg. wind.ps would be its name and obviously the file name your refering to. Hope this isnt confusing. To make a script area, go to areas tab and make script area after pressign on it, then call it script1. http://wiki.frictionalgames.com/hpl2/amnesia/script_functions for all scripts. RE: How to make wind blow - trancedj - 11-24-2010 thank you it runs well |