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
WLN73 Offline
Junior Member

Posts: 10
Threads: 3
Joined: Apr 2012
Reputation: 0
#1
Lever problem

Hi .... excuseme for my bad english first Blush

I have a little problem with a lever .... im tryed to turn on/off a light .... all working but the lever moves by itself from all sides .... as if trembling ...
This is the script i maked:

void OnEnter()
{
SetEntityPlayerInteractCallback("switch1", "func1", true);
}

void func1(string &in EntityName, int alState)
{
if( alState == -1)
SetLampLit("light1", false, true);
if( alState == 1)
SetLampLit("light1", true, true);
}

What did I do wrong? why the lever goes crazy???
(This post was last modified: 04-29-2012, 07:36 PM by WLN73.)
04-29-2012, 06:50 PM
Find


Messages In This Thread
Lever problem - by WLN73 - 04-29-2012, 06:50 PM
RE: Lever problem - by JMFStorm - 04-29-2012, 06:53 PM
RE: Lever problem - by jessehmusic - 04-29-2012, 07:05 PM
RE: Lever problem - by WLN73 - 04-29-2012, 07:36 PM



Users browsing this thread: 1 Guest(s)