Frictional Games Forum (read-only)
I need help with Trigger enemies - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: I need help with Trigger enemies (/thread-16092.html)



I need help with Trigger enemies - eg15ncvfxa - 06-12-2012

I have a mac and i put in the code but when i try to play the map it says error.


{
SetEntityCallbackFunc("Monster_1", "OnPickup");
}
void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("Monster_1", true);
ShowEnemyPlayerPosition("Monster_1");
}


RE: I need help with Trigger enemies - SilentHideButFine - 06-12-2012

(06-12-2012, 09:45 PM)eg15ncvfxa Wrote: I have a mac and i put in the code but when i try to play the map it says error.


{
SetEntityCallbackFunc("Monster_1", "OnPickup");
}
void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("Monster_1", true);
ShowEnemyPlayerPosition("Monster_1");
}
I'm not sure if that script is right for Mac :S Ask Your Computer


RE: I need help with Trigger enemies - Your Computer - 06-12-2012

You're missing the function header for the first code block. I would assume you meant to have void OnStart() there.