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 problems.
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#1
Lever problems.

Hey guys, so I've been making a script that player must pull down a lever in order to move the door (safety_large_vert.ent)

I did it, but for unknown reason for me it doesn't work.

Here is the script:

Spoiler below!
PHP Code: (Select All)
void OnStart()
{
SetEntityConnectionStateChangeCallback("lever_1""move1");
}

void move1(string &in entityint alState)
{
     if(
alState == 1)
     {
    
SetMoveObjectState("wejscie_1",1.0f);
    
SetPropStaticPhysics("lever_1"true);
     }



Is it caused because of the entity? As I wrote above it's safety_large_vert.ent
03-17-2014, 11:05 PM
Find


Messages In This Thread
Lever problems. - by Slanderous - 03-17-2014, 11:05 PM
RE: Lever problems. - by Mudbill - 03-17-2014, 11:08 PM
RE: Lever problems. - by Slanderous - 03-17-2014, 11:12 PM
RE: Lever problems. - by Mudbill - 03-17-2014, 11:18 PM
RE: Lever problems. - by Slanderous - 03-18-2014, 04:51 PM
RE: Lever problems. - by Mudbill - 03-18-2014, 09:14 PM



Users browsing this thread: 1 Guest(s)