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
Add Collide Area after picking up an item?
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#2
RE: Add Collide Area after picking up an item?

Slow down, speedy. Tongue
You could have looked at my map, if you pick up the Library Key is calls a function, but let me give you the code. Wink

In the editor:
Every interactable entity has this box. Put YourFunctionToCall in there.
[Image: customkey.jpg]

In the script:
void LibraryKeyFound(string& asName, string& asCallback)
{
    AddEntityCollideCallback("Player", "MyArea", "MyFunction", true, 1);
}

09-23-2010, 10:45 AM
Find


Messages In This Thread
RE: Add Collide Area after picking up an item? - by Pandemoneus - 09-23-2010, 10:45 AM



Users browsing this thread: 1 Guest(s)