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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need some more help with my custom story!
TeamSD Offline
Member

Posts: 51
Threads: 3
Joined: Apr 2012
Reputation: 2
#3
RE: Need some more help with my custom story!

Well this is one way.

First put this script in your hps. Put it in Void OnEnter for example.

void OnEnter()
{
AddEntityCollideCallback("ENTITYNAME", "AREANAME", "SCRIPT", false, 1);
}

Make an script area over to your "hole". And the board you want to be as a bridge. Make that board non active and check the "StaticPhysics" box.

Next we need the script to continue like this.

void SCRIPT(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("ENTITYNAME", false);
SetEntityActive("your_static_board", true);
}

Now thats simply it. So here is the whole script spiced with a little puzzlemusic and sanity gain. You can of course leave them out of your script if you wan't. Smile Hopefully I was any help for you.

void OnEnter()
{
AddEntityCollideCallback("ENTITYNAME", "AREANAME", "SCRIPT", false, 1);
}

void SCRIPT(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("ENTITYNAME", false);
SetEntityActive("your_static_board", true);
PlayMusic("12_puzzle_cavein.ogg", false, 1.0, 0, 1, true);
GiveSanityBoost();
}

(This post was last modified: 10-21-2012, 11:09 PM by TeamSD.)
10-21-2012, 11:08 PM
Find


Messages In This Thread
RE: Need some more help with my custom story! - by TeamSD - 10-21-2012, 11:08 PM



Users browsing this thread: 1 Guest(s)