06-24-2014, 12:54 AM
07-02-2014, 10:42 PM
how to pull a secret book and make the shelf move
07-02-2014, 11:25 PM
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.
07-03-2014, 01:36 AM
didnt work for me. any tutorial video
07-03-2014, 02:36 AM
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:
4) And try using this code:
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:
4) And try using this code:
PHP Code:
void OnStart()
{
AddEntityCollideCallback("<name_of_book>", "<name_of_script_area>", "open_shelf", 1, true);
}
void open_shelf(string &in asParent, string &in asChild, int alState)
{
SetMoveObjectState("shelf", 1.0f);
}
07-03-2014, 04:20 AM
worked!
how to make the grunt not hav any music when hes chasing u
how to make the grunt not hav any music when hes chasing u
07-03-2014, 04:41 AM
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.
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.
07-03-2014, 05:13 AM
downloaded
how to touch something and it says a message like if u touch a rock then it says this is a rock
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, 06:14 AM
(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 rockHPS 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>
07-04-2014, 03:09 AM
ill type works if it works or not from now
works
works