Frictional Games Forum (read-only)
Newbie's script problem - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Newbie's script problem (/thread-17773.html)



Newbie's script problem - Ank2503 - 08-15-2012

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


RE: newbie's script problem - Ongka - 08-15-2012

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.


RE: Newbie's script problem - Ank2503 - 08-15-2012

thx man +rep