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
Will this work with notes?
ElectricRed Offline
Member

Posts: 106
Threads: 13
Joined: Jun 2012
Reputation: 5
#1
Will this work with notes?

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.

[Image: 9lkjf4.jpg]

(This post was last modified: 08-12-2012, 07:49 PM by ElectricRed.)
08-05-2012, 10:33 PM
Find


Messages In This Thread
Will this work with notes? - by ElectricRed - 08-05-2012, 10:33 PM
RE: Will this work with notes? - by Your Computer - 08-05-2012, 10:38 PM
RE: Will this work with notes? - by ElectricRed - 08-05-2012, 10:58 PM
RE: Will this work with notes? - by Theforgot3n1 - 08-06-2012, 02:57 AM



Users browsing this thread: 1 Guest(s)