Frictional Games Forum (read-only)
How to activate an area during gameplay? - 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: How to activate an area during gameplay? (/thread-24260.html)



How to activate an area during gameplay? - j00le - 12-31-2013

Hello, I'm kinda new with custom story making so I need some help.

So, I need to activate a script area by picking up an item or walking to another script area.
Help me out, please Big Grin


RE: How to activate an area during gameplay? - daortir - 12-31-2013

You can use the function SetEntityActive to set the area active like you would do with an item. Simply uncheck the Active box in the level editor. Do you need me to give you the whole script ^^ ?


RE: How to activate an area during gameplay? - j00le - 12-31-2013

I tried it and it worked, thank you very much Big Grin
Great example, how simple things matter in this! Smile

Btw, you happen to know a tutorial video about making animations?


RE: How to activate an area during gameplay? - daortir - 12-31-2013

Nope. I will be learning 3D sculpting and animation creation as soon as I have finished my first mod, but right now I don't know any turotial.


RE: How to activate an area during gameplay? - PutraenusAlivius - 12-31-2013

(12-31-2013, 03:10 PM)j00le Wrote: I tried it and it worked, thank you very much Big Grin
Great example, how simple things matter in this! Smile

Btw, you happen to know a tutorial video about making animations?

Animations are tough to make. Learning Animation in a week is kinda impossible.


RE: How to activate an area during gameplay? - j00le - 12-31-2013

(12-31-2013, 05:13 PM)JustAnotherPlayer Wrote: Animations are tough to make. Learning Animation in a week is kinda impossible.

I may be using wrong term, what I'm meaning is for example flashback where the player walks without you being able to control it.


RE: How to activate an area during gameplay? - FlawlessHappiness - 12-31-2013

You can make the player incabable of controls with the function
SetPlayerActive(false);

Then with different script lines you can make the scene you want.

Use this:
http://wiki.frictionalgames.com/hpl2/amnesia/script_functions

and Ctrl+F to search

MovePlayerForward has to be repeadetly called by a timer, but is a function that makes the player walk.


RE: How to activate an area during gameplay? - j00le - 01-01-2014

There are really helpful people here, thank you so much! Smile