Frictional Games Forum (read-only)

Full Version: Newbie's script problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My script doesn't work:i want to set grunt active,and them Hallucination him



void MonsterFunction(string &in asParent, string &in asChild, int alState)

{

SetEntityActive("servant_grunt_1", true);

SetEnemyIsHallucination(servant_grunt_1, true);

}



the error : "servant_grunt_1: is not declared"

please help,i just start scripting two days ago



sry for my bad english Big Grin
void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
SetEnemyIsHallucination("servant_grunt_1", true);
}

You have to put quotation marks around names.
thx man +rep