The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
SetPlayerActive(false) Help!
MaZiCUT Offline
Senior Member

Posts: 536
Threads: 31
Joined: Jun 2012
Reputation: 17
#1
SetPlayerActive(false) Help!

void OnStart()
{
wakeUp();
AddEntityCollideCallback("Player", "KillTheLights", "LightsOut", true, 1);
AddEntityCollideCallback("Player", "KillTheLights", "Freeze", true, 1);
}

void Freeze(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);
AddTimer("", 10, "");
SetPlayerActive(true);
}


Hello i'm having troubble with something. This is what happends:
I go to the custom story, launch.. it's dark i wake up then i go forwards and collide with an area that kills the lights, but i want that area to also freeze the player aka SetPlayerActive(false); and then you have to wait a specific time, 10 seconds in my case, so can you please help? Smile


I'm new here so if this is in the wrong section please tell me.

Ignore the red!



I fixed it with help from [b]P44RTHURN4X and with his script i just made a new area for the freeze and it worked.[/b]
(This post was last modified: 06-08-2012, 05:02 PM by MaZiCUT.)
06-08-2012, 04:29 PM
Website Find


Messages In This Thread
SetPlayerActive(false) Help! - by MaZiCUT - 06-08-2012, 04:29 PM
RE: SetPlayerActive(false) Help! - by P44RTHURN4X - 06-08-2012, 04:45 PM
RE: SetPlayerActive(false) Help! - by MaZiCUT - 06-08-2012, 04:56 PM
RE: SetPlayerActive(false) Help! - by P44RTHURN4X - 06-09-2012, 12:43 PM



Users browsing this thread: 1 Guest(s)