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
Romulator Offline
Not Tech Support ;-)

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

What you want to do here is make the rock a static object and place a Script Area around it.

Click on your rock in the level editor, go to the entity tab on the right and tick "StaticPhysics".
Then place a Script area around it.
Spoiler below!
[Image: 223e56362f.jpg]

Using Harry Potter's Code:
(07-03-2014, 06:14 AM)Harry Potter Wrote: HPS file.
Spoiler below!

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

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



But all you need to really do is change the EntityToInteract in the SetEntityPlayerInteractCallback to the name of your scriptarea. In my case above, "rockmessage".

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 07-12-2014, 02:41 AM by Romulator.)
07-12-2014, 02:41 AM
Find


Messages In This Thread
RE: how to make floor break when u go to a certain area - by Romulator - 07-12-2014, 02:41 AM



Users browsing this thread: 1 Guest(s)