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?
theDARKW0LF Offline
Member

Posts: 150
Threads: 17
Joined: Sep 2010
Reputation: 0
#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
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




Users browsing this thread: 1 Guest(s)