Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help [SOLVED] Levers
Straxedix Offline
Senior Member

Posts: 426
Threads: 52
Joined: Mar 2014
Reputation: 5
#5
RE: Levers

Uhm no not working

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

void Lever(string &in asEntityint alState
{
if(
alState == 1)
{
//If ON
}

if(
alState == -1)
{
//If OFF
}



EDIT:Could you explain a little i am doing that kinda script for the first time :I

(This post was last modified: 10-18-2014, 07:36 AM by Straxedix.)
10-18-2014, 07:35 AM
Find


Messages In This Thread
[SOLVED] Levers - by Straxedix - 10-18-2014, 07:06 AM
RE: Levers - by FlawlessHappiness - 10-18-2014, 07:20 AM
RE: Levers - by Straxedix - 10-18-2014, 07:25 AM
RE: Levers - by FlawlessHappiness - 10-18-2014, 07:28 AM
RE: Levers - by Straxedix - 10-18-2014, 07:35 AM
RE: Levers - by Straxedix - 10-18-2014, 08:38 AM
RE: Levers - by Straxedix - 10-18-2014, 10:20 AM
RE: Levers - by Slanderous - 10-18-2014, 11:41 AM
RE: Levers - by Straxedix - 10-19-2014, 09:04 AM
RE: Levers - by 7heDubz - 10-18-2014, 02:06 PM
RE: Levers - by Straxedix - 10-19-2014, 07:16 AM



Users browsing this thread: 4 Guest(s)