Frictional Games Forum (read-only)
how to make floor break when u go to a certain area - 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 make floor break when u go to a certain area (/thread-25504.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 06-24-2014

____________
nvm i saw tutorial


RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 07-02-2014

how to pull a secret book and make the shelf move


RE: how to make floor break when u go to a certain area - Mudbill - 07-02-2014

There's a special book entity that you can pull. Add a collision callback using it with an area so that it is called when you pull the book, then use the SetMoveObjectState script on a moveable bookshelf entity to move it.


RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 07-03-2014

didnt work for me. any tutorial video


RE: how to make floor break when u go to a certain area - Romulator - 07-03-2014

1) Follow the bookshelf part of this tutorial:
https://wiki.frictionalgames.com/hpl2/tutorials/script/levers_and_secretshelfs?s[]=bookshelf

2) Get your pulley book (Entities > Gameplay > book_moveable)

3) Add a Script_Area behind the book at a suitable distance (the book can only go so far) like this:
[Image: b11c1a3ccf.jpg]

4) And try using this code:
PHP Code:
void OnStart()
{
AddEntityCollideCallback("<name_of_book>""<name_of_script_area>""open_shelf"1true);
}

void open_shelf(string &in asParentstring &in asChildint alState)
{
SetMoveObjectState("shelf"1.0f);




RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 07-03-2014

worked!

how to make the grunt not hav any music when hes chasing u


RE: how to make floor break when u go to a certain area - Mudbill - 07-03-2014

You need a custom entity. It's easy to make, just open the grunt file in the Model Editor, go on Settings > User Defined Variables, then remove the music files from the DangerMusic, SearchMusic, and AttackMusic slots. Save it as a separate entity, for example servant_grunt_nomusic.ent

Or if you're lazy, you can just download the one I edited right now (had to make it an archive, cause .ent isn't allowed apparently).

Keep in mind that the loud static noise as a monster is chasing you will still be there and can not be removed with just a custom story. This only removes the music.


RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 07-03-2014

downloaded

how to touch something and it says a message like if u touch a rock then it says this is a rock


RE: how to make floor break when u go to a certain area - PutraenusAlivius - 07-03-2014

(07-03-2014, 05:13 AM)victorkim890(KimmyChimmy) Wrote: how to touch something and it says a message like if u touch a rock then it says this is a rock
HPS file.
Spoiler below!

PHP Code:
void OnStart()
{
SetEntityPlayerInteractCallback("EntityToInteract""MessageAppear"false);
}

void MessageAppear(string &in asEntity)
{
SetMessage("Notes""Entry"0);



LANG file
Spoiler below!

Code:
<LANGUAGE>
  <RESOURCES>
  </RESOURCES>
  <CATEGORY Name="CustomStoryMain">
    <Entry Name="Description">Description</Entry>
  </CATEGORY>
  <CATEGORY Name="Notes">
    <Entry Name="Entry">This is a Rock. And there's more.</Entry>
</LANGUAGE>




RE: how to make floor break when u go to a certain area - victorkim890(KimmyChimmy) - 07-04-2014

ill type works if it works or not from now
works