The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Item Interaction
Russ Money Offline
Senior Member

Posts: 360
Threads: 25
Joined: Dec 2010
Reputation: 4
#1
Item Interaction

Thanks once again to you guys and your quick replies but, I've run into another problem.

I want to make a simple trigger where when the player interacts with an entity, that it will trigger something.

What I have so far is this, I've made a office with a single level door and a note on the desk. The level door is started locked. I want the letter to be the reason the door is locked and once the player picks up said letter, the level door unlocks. I also want the door to give a message while it's locked.

Here's what I got so far, if anyone can help out:
The name of the note entity is "albert_letter" the level door is named "begin_door"

void OnStart()
{
SetEntityPlayerInteractCallback("albert_letter", "begindoor1", true);
}
void begindoor1(string &in asParent, string &in asChild, int alState)
{
    SetLevelDoorLocked("begin_door", false);
}

Do I need to make entries into the .lang file? If so, what are the categories for locked doors?

Once last thing, how do I add narrations to letters?
01-05-2011, 05:53 AM
Find


Messages In This Thread
Item Interaction - by Russ Money - 01-05-2011, 05:53 AM
RE: Item Interaction - by Equil - 01-05-2011, 06:24 AM
RE: Item Interaction - by Russ Money - 01-05-2011, 06:42 AM
RE: Item Interaction - by Equil - 01-05-2011, 07:10 AM
RE: Item Interaction - by Russ Money - 01-05-2011, 08:11 AM
RE: Item Interaction - by Equil - 01-05-2011, 08:13 AM



Users browsing this thread: 1 Guest(s)