Frictional Games Forum (read-only)

Full Version: Add Collide Area after picking up an item?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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:
Code:
void LibraryKeyFound(string& asName, string& asCallback)
{
    AddEntityCollideCallback("Player", "MyArea", "MyFunction", true, 1);
}