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
Lever Function [solved]
Axe to the D Offline
Junior Member

Posts: 6
Threads: 2
Joined: Jan 2011
Reputation: 0
#1
Lever Function [solved]

Hi all

I have the following problem. I want to make a lever open a door. I took a look at the script functions in this forum and found one.
After changing it looks like this:

// Secret Lever Function
void OnLeverStateChange("lever_01", 0)
{
SetSwingDoorLocked("door_hidden", false, true);
PlaySoundAtEntity("", "unlock_door", "door_hidden", 0, false);
}

But as I want to start the map - Fatal Error

Can anybody help me? Whats wrong with that function?
(This post was last modified: 01-18-2011, 05:23 PM by Axe to the D.)
01-18-2011, 11:30 AM
Find


Messages In This Thread
Lever Function [solved] - by Axe to the D - 01-18-2011, 11:30 AM
RE: Lever Function - by Som1Lse - 01-18-2011, 12:01 PM
RE: Lever Function - by Axe to the D - 01-18-2011, 12:13 PM
RE: Lever Function - by Axe to the D - 01-18-2011, 02:22 PM
RE: Lever Function - by Andross - 01-18-2011, 02:32 PM
RE: Lever Function - by Axe to the D - 01-18-2011, 03:09 PM



Users browsing this thread: 1 Guest(s)