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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Entity Activate/Deactivate?
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#3
RE: Entity Activate/Deactivate?

Yep, it can be done.
PHP Code: (Select All)
OnStart()
{
SetEntityPlayerInteractCallback("Chemical_Pot""StatueAppear"true);
}

void StatueAppear(string &in asEntity)
{
SetEntityActive("Statue_1"false); //Statue in other room
SetEntityActive("Statue_2"false); //Statue in other room
SetEntityActive("Statue_3"true); //Statue behind you
SetEntityActive("Statue_4"true); //Statue behind you


Just make sure in your level editor, the "Statue_x" is named as it is in script, so if my statue were actually named boo, I would need to name the statue in the script boo.

Also, in the level editor, make sure the statues behind you are inactive and are close enough to the player to scare if this is your point, but can also allow the player to move away. Make sure as well that the player cannot get stuck inside the statues.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 05-19-2013, 08:40 AM by Romulator.)
05-19-2013, 08:39 AM
Find


Messages In This Thread
Entity Activate/Deactivate? - by Bonehead - 05-19-2013, 08:05 AM
RE: Entity Activate/Deactivate? - by Kullin - 05-19-2013, 08:32 AM
RE: Entity Activate/Deactivate? - by Romulator - 05-19-2013, 08:39 AM
RE: Entity Activate/Deactivate? - by Bonehead - 05-19-2013, 04:09 PM
RE: Entity Activate/Deactivate? - by 7heDubz - 05-19-2013, 04:12 PM
RE: Entity Activate/Deactivate? - by Bonehead - 05-19-2013, 04:29 PM
RE: Entity Activate/Deactivate? - by Kullin - 05-19-2013, 04:57 PM
RE: Entity Activate/Deactivate? - by Bonehead - 05-19-2013, 05:07 PM
RE: Entity Activate/Deactivate? - by Kullin - 05-19-2013, 05:53 PM
RE: Entity Activate/Deactivate? - by Bonehead - 05-19-2013, 05:56 PM
RE: Entity Activate/Deactivate? - by Kullin - 05-19-2013, 06:56 PM
RE: Entity Activate/Deactivate? - by Bonehead - 05-19-2013, 07:36 PM



Users browsing this thread: 1 Guest(s)