Frictional Games Forum (read-only)

Full Version: Why doesn't this simple script work?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "GruntEvent", true, 1);
}


void GruntEvent(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("enemy_grunt",true);
}
This doesn't work. Help?

EDIT: Nevermind! I just had to recompile the script file. You can delete this. :S