03-28-2013, 05:32 PM
Hello!
I'm working on a custom story where I want a examine area to disappear (become unactive) when the player has touched it once. I use SetEntityCallbackFunc, but the examine area is still there after I've touched it.. Do areas even count as enteties? Here's my script:
void OnStart()
{
SetEntityCallbackFunc("ExamineArea_2", "TextGone1");
}
void TextGone1(string &in asEntity, string &in type)
{
SetEntityActive("ExamineArea_2", false);
}
Please help!
I'm working on a custom story where I want a examine area to disappear (become unactive) when the player has touched it once. I use SetEntityCallbackFunc, but the examine area is still there after I've touched it.. Do areas even count as enteties? Here's my script:
void OnStart()
{
SetEntityCallbackFunc("ExamineArea_2", "TextGone1");
}
void TextGone1(string &in asEntity, string &in type)
{
SetEntityActive("ExamineArea_2", false);
}
Please help!