Frictional Games Forum (read-only)

Full Version: how to make floor break when u go to a certain area
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13
____________
nvm i saw tutorial
how to pull a secret book and make the shelf move
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.
didnt work for me. any tutorial video
1) Follow the bookshelf part of this tutorial:
https://wiki.frictionalgames.com/hpl2/tu...=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);

worked!

how to make the grunt not hav any music when hes chasing u
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.
downloaded

how to touch something and it says a message like if u touch a rock then it says this is a rock
(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>

ill type works if it works or not from now
works
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13