11-11-2011, 10:06 AM
I need to active some fog on a script, I've tried the SetEntityActive part but it hasn't seemed to work. Any help?
New question:
I'm trying to use the SetEntityPlayerLookAtCallback
void OnStart()
{
SetEntityPlayerLookAtCallback("prisoner", "PrisonerLookAt", false);
}
void PrisonerLookAt(string &in asEntity, int alState)
{
if (alState == 1)
{
SetEntityActive("prisoner", false);
PlaySoundAtEntity("", "enemy_hallucination_disappear.snt", "Player", 0, false);
}
}
It loads fine, But when i look at the object it doesn't disappear
New question:
I'm trying to use the SetEntityPlayerLookAtCallback
void OnStart()
{
SetEntityPlayerLookAtCallback("prisoner", "PrisonerLookAt", false);
}
void PrisonerLookAt(string &in asEntity, int alState)
{
if (alState == 1)
{
SetEntityActive("prisoner", false);
PlaySoundAtEntity("", "enemy_hallucination_disappear.snt", "Player", 0, false);
}
}
It loads fine, But when i look at the object it doesn't disappear