Need help with scripting - 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: Need help with scripting (/thread-6158.html) Pages:
1
2
|
RE: Need help with scripting - Cakefirst - 01-12-2011 -snip- read below RE: Need help with scripting - Cakefirst - 01-13-2011 Ok, I thought I had got a working script for making the leak stop by turning the wheel but all I managed was to stop the sound when turning it, the particle wont disappear, I still dont find any way to do it. Also I have put out a statue more specifically called deformed_man. What I am trying to do is find a way so when you see it your screen will shake breafly and you hear your breath and sanity goes up as you go scared. I think I got it figured out how the sound will work but I have no clue of how to make character screen shake and sanity goes up and combine it with this prop? Any help appreciated This is what I got for my leak, it only stops the sound void LeakValve(string &in EntityName, int alState) { if (alState == 1) { if(GetLocalVarInt("LeakDone") == 0) { SetLocalVarInt("LeakDone", 1); for (int i = 0; i < 26; i++) { DestroyParticleSystem("leak"+i); } StopSound("leak_sound1", 2); SetLocalVarInt("isLeakOn", 0); GiveSanityBoost(); RE: Need help with scripting - Frontcannon - 01-13-2011 You don't use these {} in a for loop. At least I don't. RE: Need help with scripting - Tottel - 01-13-2011 (01-13-2011, 10:16 PM)Frontcannon Wrote: You don't use these {} in a for loop. At least I don't. Sure you do.. You just don't need them for 1 single line in your loop. RE: Need help with scripting - Seragath - 01-14-2011 (01-13-2011, 09:46 PM)Cakefirst Wrote: Ok, I thought I had got a working script for making the leak stop by turning the wheel but all I managed was to stop the sound when turning it, the particle wont disappear, I still dont find any way to do it. Also I have put out a statue more specifically called deformed_man. What I am trying to do is find a way so when you see it your screen will shake breafly and you hear your breath and sanity goes up as you go scared. I think I got it figured out how the sound will work but I have no clue of how to make character screen shake and sanity goes up and combine it with this prop? Any help appreciated Code: void LeakValve(string &in EntityName, int alState) Fixed it ? RE: Need help with scripting - Cakefirst - 01-14-2011 I used it but it didn't fix anything, I toyed around and discovered by removing the +i made it work. The particle now disspears aswell as sound. Thanks for the help though, I am still looking for help with making sanity go up by spotting the statue I have put out.. |