02-21-2012, 09:26 PM
02-21-2012, 09:28 PM
It looks like you forgot to put "void" before OnLeave, and it also seems that you forgot to close or end something. However, i can't say for sure until you post your code.
02-21-2012, 09:31 PM
(02-21-2012, 09:28 PM)Your Computer Wrote: [ -> ]It looks like you forgot to put "void" before OnLeave, and it also seems that you forgot to close or end something. However, i can't say for sure until you post your code.
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_15", "ActivateMonster1", false, 0);
}
void OnEnter()
{
void ActivateMonster1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("waterlurker_2", true);
}
void OnLeave()
{
}
02-21-2012, 09:35 PM
PHP Code:
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_15", "ActivateMonster1", false, 0);
}
void OnEnter()
{
}
void OnLeave()
{
}
void ActivateMonster1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("waterlurker_2", true);
}
You need your function outside any other function as long as you don't make your own.
02-21-2012, 09:37 PM
(02-21-2012, 09:35 PM)junkfood2121 Wrote: [ -> ]PHP Code:void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_15", "ActivateMonster1", false, 0);
}
void OnEnter()
{
}
void OnLeave()
{
}
void ActivateMonster1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("waterlurker_2", true);
}
You need your function outside any other function as long as you don't make your own.