Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Gametee


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add Collide Area after picking up an item?
Author Message
theDARKW0LF Offline
Member

Posts: 150
Joined: Sep 2010
Reputation: 0
Post: #1
Add Collide Area after picking up an item?

Yes, I need help once again, just trying to polish some areas so that there's no issues when I get people playing my map... Can anyone show me exactly what I do to make it so an Area is added in the AddEntityCollideCallback once I pick up a specific item?

Thanks... Blush

Anyone know?

Check out my custom stories(1)(2)!
09-22-2010 11:29 PM
Find all posts by this user Quote this message in a reply
Pandemoneus Offline
Senior Member

Posts: 328
Joined: Sep 2010
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)