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?