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
Frustration Overdose (Help!)
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#2
RE: Frustration Overdose (Help!)

Ok alittle tired so we'll see if I can be any help. For me when you cant see custom name/description of items in your customstory is because you're running in a dev environment. If you play it as a normal customstory you can see that, atleast thats how it works for me.


///////////PICKUP ACTIVATE////////////
Collide means that the two entities literally collide, as in, physically touch. Picking up say a key doesn't count as collision.
You'll need a interact callback. Select the key in the editor, and find the callback field. Write KeyPickUp. Then, in your script, put a function:


void OnStart()
{
SetEntityPlayerInteractCallback("castle_key_1", "KeyPickUp", true);

}

void KeyPickUp(string &in entity, string &in type)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0.1, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0.1, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0.1, "");
GiveSanityDamage(15, true);
StartScreenShake(0.2f, 4, 1, 1);
PlaySoundAtEntity("guardian_distant3", "guardian_distant3.snt", "Player", 0, false);
}

Just place the monster behind the door and place the Pathnodes out so he walks through the door and he will smash it down. the other stuff there is screen shaking, sanity damage and a sound to add a more scary touch to it.

EDIT: Removed the typing mistake if other people were looking for the answer aswell.


(This post was last modified: 10-08-2011, 08:32 PM by Rownbear.)
10-07-2011, 10:33 PM
Find


Messages In This Thread
Frustration Overdose (Help!) - by GhastDagger - 10-07-2011, 07:55 PM
RE: Frustration Overdose (Help!) - by Rownbear - 10-07-2011, 10:33 PM
RE: Frustration Overdose (Help!) - by GhastDagger - 10-08-2011, 11:27 AM
RE: Frustration Overdose (Help!) - by Elven - 10-08-2011, 02:34 PM
RE: Frustration Overdose (Help!) - by GhastDagger - 10-08-2011, 03:43 PM
RE: Frustration Overdose (Help!) - by Rownbear - 10-08-2011, 05:17 PM
RE: Frustration Overdose (Help!) - by GhastDagger - 10-08-2011, 06:25 PM
RE: Frustration Overdose (Help!) - by Rownbear - 10-08-2011, 08:45 PM
RE: Frustration Overdose (Help!) - by GhastDagger - 10-09-2011, 11:36 AM



Users browsing this thread: 1 Guest(s)