Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 4 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to make floor break when u go to a certain area
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#51
RE: how to make floor break when u go to a certain area

____________
nvm i saw tutorial

(This post was last modified: 06-24-2014, 12:56 AM by victorkim890(KimmyChimmy).)
06-24-2014, 12:54 AM
Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#52
RE: how to make floor break when u go to a certain area

how to pull a secret book and make the shelf move

07-02-2014, 10:42 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#53
RE: how to make floor break when u go to a certain area

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-02-2014, 11:25 PM
Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#54
RE: how to make floor break when u go to a certain area

didnt work for me. any tutorial video

(This post was last modified: 07-03-2014, 01:37 AM by victorkim890(KimmyChimmy).)
07-03-2014, 01:36 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#55
RE: how to make floor break when u go to a certain area

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: (Select All)
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);


Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 07-03-2014, 02:37 AM by Romulator.)
07-03-2014, 02:36 AM
Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#56
RE: how to make floor break when u go to a certain area

worked!

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

(This post was last modified: 07-03-2014, 04:21 AM by victorkim890(KimmyChimmy).)
07-03-2014, 04:20 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#57
RE: how to make floor break when u go to a certain area

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.


Attached Files
.rar   servant_grunt_nomusic.rar (Size: 2.32 KB / Downloads: 193)

(This post was last modified: 07-03-2014, 04:50 AM by Mudbill.)
07-03-2014, 04:41 AM
Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#58
RE: how to make floor break when u go to a certain area

downloaded

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

(This post was last modified: 07-03-2014, 05:52 AM by victorkim890(KimmyChimmy).)
07-03-2014, 05:13 AM
Find
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#59
RE: how to make floor break when u go to a certain area

(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: (Select All)
void OnStart()
{
SetEntityPlayerInteractCallback("EntityToInteract""MessageAppear"false);
}

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



LANG file
Spoiler below!

<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>


"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 07-03-2014, 06:22 AM by PutraenusAlivius.)
07-03-2014, 06:14 AM
Find
victorkim890(KimmyChimmy) Offline
Senior Member

Posts: 316
Threads: 1
Joined: Jun 2014
Reputation: 1
#60
RE: how to make floor break when u go to a certain area

ill type works if it works or not from now
works

07-04-2014, 03:09 AM
Find




Users browsing this thread: 1 Guest(s)