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 problem
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#1
lever problem

I have a problem with lever i set in my cs.

The first time i scripted it in, it worked perfectly, but now after that i copied that script into another file, and changed the names that need to be changed, it wont work.

void OnStart()
{
SetEntityConnectionStateChangeCallback("bro_lever", "UnLockDoor");
}

void UnLockDoor(string &in asEntity, int level_state)
{
if (level_state == 1)
{
SetSwingDoorLocked("castle_1", false, true);
PlaySoundAtEntity("", "ui_sanity_gain", "Player", 0, false);
GiveSanityBoost();
}
}

CURRENT PROJECT:
A Fathers Secret == Just started
(This post was last modified: 07-27-2012, 04:09 PM by Lizard.)
07-27-2012, 03:30 PM
Find


Messages In This Thread
lever problem - by Lizard - 07-27-2012, 03:30 PM
RE: lever problem - by Adny - 07-27-2012, 03:43 PM
RE: lever problem - by Lizard - 07-27-2012, 03:50 PM
RE: lever problem - by Steve - 07-27-2012, 03:43 PM
RE: lever problem - by Adny - 07-27-2012, 03:53 PM
RE: lever problem - by Lizard - 07-27-2012, 03:58 PM



Users browsing this thread: 1 Guest(s)