10-26-2011, 06:12 PM
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
{
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