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?
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#6
RE: Make Statues Appear Behind You?

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

Did you collide with ScriptArea_7 in-game?

"Veni, vidi, vici."
"I came, I saw, I conquered."
02-28-2013, 08:17 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 PutraenusAlivius - 02-28-2013, 08:17 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: 1 Guest(s)