Frictional Games Forum (read-only)

Full Version: I need help with Trigger enemies
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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");
}
(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
You're missing the function header for the first code block. I would assume you meant to have void OnStart() there.