Frictional Games Forum (read-only)
some scripting help - 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: some scripting help (/thread-15693.html)



some scripting help - Battlefield3142 - 05-29-2012

So what I'm trying to achieve is:

when player picks up a key

a fake monster appears and poofs away (hallucination)

(and player falls to ground as if the sanity has reached 0 if possible)

What would I need to use to make that happen.


RE: some scripting help - Obliviator27 - 05-29-2012

(05-29-2012, 02:38 AM)Battlefield3142 Wrote: So what I'm trying to achieve is:

when player picks up a key

a fake monster appears and poofs away (hallucination)

(and player falls to ground as if the sanity has reached 0 if possible)

What would I need to use to make that happen.
SetEntityPlayerInteractCallback
SetEntityActive
GiveSanityDamage.


RE: some scripting help - Putmalk - 05-29-2012

Haven't seen this before.


RE: some scripting help - Battlefield3142 - 05-29-2012

thanks for the help, and yeah, ik its been done before, its really, really stupid, i agree.


RE: some scripting help - Datguy5 - 05-29-2012

(05-29-2012, 04:11 AM)Battlefield3142 Wrote: thanks for the help, and yeah, ik its been done before, its really, really stupid, i agree.
Why do you do it then?lol


RE: some scripting help - Adrianis - 05-29-2012

(05-29-2012, 05:43 AM)Datguy5 Wrote:
(05-29-2012, 04:11 AM)Battlefield3142 Wrote: thanks for the help, and yeah, ik its been done before, its really, really stupid, i agree.
Why do you do it then?lol
Gotta crawl before you can walk, right? Smile

EDIT: Actually, nah, that aint right haha