Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make Statues Appear Behind You?
thetastyfish Offline
Junior Member

Posts: 18
Threads: 6
Joined: Feb 2013
Reputation: 0
#5
RE: Make Statues Appear Behind You?

(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.
02-28-2013, 03:47 AM
Find


Messages In This Thread
Make Statues Appear Behind You? - by taylor122002 - 11-12-2012, 02:49 AM
RE: Make Statues Appear Behind You? - by Tiger - 02-28-2013, 02:03 AM
RE: Make Statues Appear Behind You? - by thetastyfish - 02-28-2013, 03:47 AM
RE: Make Statues Appear Behind You? - by Tiger - 02-28-2013, 01:24 PM
RE: Make Statues Appear Behind You? - by i3670 - 02-28-2013, 03:38 PM



Users browsing this thread: 2 Guest(s)