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
Help on locking level doors?
Wyz Offline
Junior Member

Posts: 12
Threads: 3
Joined: Jul 2012
Reputation: 0
#1
Help on locking level doors?

I recently started a new CS and I want to lock a level door in the first map, but regardless of my code, the door stays unlocked.


void OnStart()
{
SetPlayerLampOil(0);
AddEntityCollideCallback("Player", "ArmorTrigger", "ArmorTriggerFunc", true, 1);

}


//Function to make armor's head fall in cellar

void ArmorTriggerFunc(string &in asParent, string &in asChild, int alState)
{
AddPropForce("fallingArmor", 50, 0, 300, "World");
}


//Function to set "Atrium" door locked in cellar

void CellarLockedFunc(string &in asEntity)
{
SetLevelDoorLocked("Atrium", false);
}

Is there something I'm missing?
07-11-2012, 03:14 PM
Find


Messages In This Thread
Help on locking level doors? - by Wyz - 07-11-2012, 03:14 PM
RE: Help on locking level doors? - by Stepper321 - 07-11-2012, 03:30 PM
RE: Help on locking level doors? - by Wyz - 07-11-2012, 04:41 PM
RE: Help on locking level doors? - by Wyz - 07-11-2012, 09:04 PM
RE: Help on locking level doors? - by Wyz - 07-12-2012, 12:02 AM
RE: Help on locking level doors? - by Wyz - 07-12-2012, 12:26 AM
RE: Help on locking level doors? - by Cruzore - 07-12-2012, 01:02 AM
RE: Help on locking level doors? - by Wyz - 07-12-2012, 02:09 PM
RE: Help on locking level doors? - by Wyz - 07-12-2012, 04:19 PM
RE: Help on locking level doors? - by Wyz - 07-12-2012, 09:10 PM



Users browsing this thread: 2 Guest(s)