(02-28-2013, 02:03 AM)Tigerwaw Wrote: (02-28-2013, 01:42 AM)thetastyfish Wrote: I am trying to do the same thing, but I want the statue to appear when the player collides with a certain script area. I have tried the SetEntityActive and CreateEntityAtArea functions but to no avail. I'm working with an eagle statue, but don't know which function to use. If you could please explain in detail how to make the statue appear, I would really appreciate it!
Use 'PlayerCollideCallback' and 'SetEntityActive'? If it's not working you're probably not doing it right.
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_7", "FUNCTION7", true, 1);
}
void FUNCTION7(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("eagle_1", true);
SetLightVisible("PointLight_2", true);
SetLightVisible("PointLight_1", true);
}
This is what I've tried, and it doesn't work.