So I have a script here where I want an area to teleport the player only if they have a note. However, is this the right way to go about this? For some reason it's not working, so I'm thinking maybe this command only works with items, and not notes.
void CollideAreaTeleportTrail(string &in asParent, string &in asChild, int alState)
{
if(HasItem("note_key") == true)
{
SetEntityActive("AreaDisplayMessage", false);
ChangeMap("04__Trail.map", "PlayerStartArea_1", "", "");
}
}
If I wanted to do this with a note, would I need to go about it a different way, or am I just doing something wrong here?
Thanks.