[SCRIPT] [SOLVED] Is it possible ? - 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: [SCRIPT] [SOLVED] Is it possible ? (/thread-26249.html) Pages:
1
2
|
[SOLVED] Is it possible ? - Straxedix - 09-21-2014 Is it possible to make when player enter the area: -He gains low sanity,low hp,he start to hear sounds,camera is fu*ked up,sensitivity is smaller...Until he reach another area when all that stops... And if it is...How i tried few thinks but ...I am still new in this stuff,i can do some scripts alone but... RE: Is it possible ? - The chaser - 09-21-2014 Yeah, it's pretty possible: Add two "AddEntityCollideCallback". One should look like this: AddEntityCollideCallback("Player", "InsArea", "FuckItUp", true, 1); AddEntityCollideCallback("Player", "InsArea", "ToNormality", true, -1); There's one thing that I need to know tho: will the player be able to get that event as many times as it wishes? Then: void FuckItUp (string &in asParent, string &in asChild, int alState) { SetPlayerSanity(float afSanity); SetPlayerHealth(float afHealth); PlaySoundAtEntity("WhateverSound", "Sound.snt","Player", 0, false); FadeImageTrailTo(float afAmount, float afSpeed); FadeRadialBlurTo(float afSize, float afSpeed); FadePlayerFOVMulTo(float afX, float afSpeed); FadePlayerAspectMulTo(float afX, float afSpeed); } void ToNormality (string &in...) { ChangePlayerStateToNormal(); } That should be it. There are more ways to customize it, so if this isn't all you need just tell us RE: Is it possible ? - Straxedix - 09-21-2014 Hmm if ask me do i wanna event work only when enter then yeah i wanna (so it don't goes back and same happens) and the script has a problem...It says expected ")" or "," RE: Is it possible ? - Neelke - 09-21-2014 Post the script then I guess, assuming theres something you've either accidently deleted or added. RE: Is it possible ? - Radical Batz - 09-21-2014 (09-21-2014, 02:10 PM)Straxedix Wrote: Hmm if ask me do i wanna event work only when enter then yeah i wanna (so it don't goes back and same happens) and the script has a problem...It says expected ")" or "," Show me the script you put in your hps file, I hope you put the numbers and everything and not just copied the one that chase gave you and just pasted it like that. RE: Is it possible ? - Straxedix - 09-21-2014 LOOOOOL ofc i didn't...okay maybe a little...okay i copied and pasted it -.- I am so lazy atm xD But i will change it atm :D RE: Is it possible ? - Radical Batz - 09-21-2014 (09-21-2014, 02:21 PM)Straxedix Wrote: LOOOOOL ofc i didn't...okay maybe a little...okay i copied and pasted it -.- I am so lazy atm xD No I mean did you change these? example PHP Code: SetPlayerSanity(float afSanity); did you change the last thing? to this? PHP Code: SetPlayerSanity(0); or any number, cause that can be the cause of the error RE: Is it possible ? - Straxedix - 09-21-2014 Spoiler below!
RE: Is it possible ? - Radical Batz - 09-21-2014 (09-21-2014, 02:27 PM)Straxedix Wrote: Why is that a thing? PHP Code: void ToNormality(string &in...) It should be PHP Code: void ToNormality(string &in asParent, string &in asChild, int alState) lol I guess chaser was too lazy to continue it RE: Is it possible ? - Straxedix - 09-21-2014 I noticed it Spoiler below!
Now it comes more errors say that these: Spoiler below!
It says they need ")" or "," |