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
Script Help Lights ON and OFF
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#10
RE: Lights ON and OFF

(03-22-2012, 09:02 PM)BlingBoyOto Wrote: I still don't understand somehow

Do I need to change my void MyFunc
Or is SetEntityConnectionStateChangeCallback works different ?

I fell like a retard :/

The second argument of SetEntityConnectionStateChangeCallback is the name of the function that is to be the callback set for the entity provided in the first argument. Did you pass in "MyFunc" to the second argument? No, you passed in "lights_on". However, the syntax for the callback function requires two parameters: one of type string and one of type int. Your current lights_on function only declares one parameter, which is of type string.

Tutorials: From Noob to Pro
03-22-2012, 09:41 PM
Website Find


Messages In This Thread
Lights ON and OFF - by asghdrew - 03-21-2012, 03:57 PM
RE: Lights ON and OFF - by palistov - 03-21-2012, 04:08 PM
RE: Lights ON and OFF - by asghdrew - 03-21-2012, 04:27 PM
RE: Lights ON and OFF - by Your Computer - 03-21-2012, 09:44 PM
RE: Lights ON and OFF - by asghdrew - 03-22-2012, 11:34 AM
RE: Lights ON and OFF - by Your Computer - 03-22-2012, 08:09 PM
RE: Lights ON and OFF - by asghdrew - 03-22-2012, 08:40 PM
RE: Lights ON and OFF - by Your Computer - 03-22-2012, 08:57 PM
RE: Lights ON and OFF - by asghdrew - 03-22-2012, 09:02 PM
RE: Lights ON and OFF - by Your Computer - 03-22-2012, 09:41 PM



Users browsing this thread: 1 Guest(s)