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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script error (Again)
Venom Fox Offline
Junior Member

Posts: 32
Threads: 9
Joined: Mar 2016
Reputation: 0
#21
RE: Script error (Again)

One more thing (If anyone's still around)

I put a button in my map that should light all the lights in a hallway.
The button is the button_red_glow_1 one. I added this to the connectionstatechangecallback thing in the map editor : button_glow_moving_1_OnConnectionStateChange

and I added this to my script file:

void button_glow_moving_1_OnConnectionStateChange(const tString &in asEntity, int alState)
{
if (alState==1)
{
Lamp_SetLit("ceiling_large_robot_3",
true,
true);
Lamp_SetLit("ceiling_large_robot_2",
true,
true);
Lamp_SetLit("ceiling_large_robot_1",
true,
true);
Lamp_SetLit("ceiling_large_robot_4",
true,
true);

}
else
{
Lamp_SetLit("ceiling_large_robot_3",
false,
true);
Lamp_SetLit("ceiling_large_robot_2",
false,
true);
Lamp_SetLit("ceiling_large_robot_1",
false,
true);
Lamp_SetLit("ceiling_large_robot_4",
false,
true);



}
return true;
}

I get this error : Can't return value when return type is void.
Anyone knows what this means? Or see anything wrong with my script? :S

Edit: Also, another error: could not find method void button_glow_moving_1...

Edit 2: Nevermind, got it solved!
(This post was last modified: 07-10-2016, 01:32 PM by Venom Fox.)
07-10-2016, 11:54 AM
Find


Messages In This Thread
Script error (Again) - by Venom Fox - 07-08-2016, 11:48 AM
RE: Script error (Again) - by Romulator - 07-08-2016, 01:36 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 02:40 PM
RE: Script error (Again) - by Hypercube - 07-08-2016, 04:28 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 04:42 PM
RE: Script error (Again) - by Abion47 - 07-08-2016, 05:20 PM
RE: Script error (Again) - by Hypercube - 07-08-2016, 05:29 PM
RE: Script error (Again) - by Abion47 - 07-08-2016, 05:43 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 06:36 PM
RE: Script error (Again) - by Hypercube - 07-08-2016, 04:59 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 05:27 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 05:33 PM
RE: Script error (Again) - by Hypercube - 07-08-2016, 06:37 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 06:53 PM
RE: Script error (Again) - by Abion47 - 07-08-2016, 06:58 PM
RE: Script error (Again) - by Venom Fox - 07-08-2016, 07:07 PM
RE: Script error (Again) - by Daemian - 07-08-2016, 10:58 PM
RE: Script error (Again) - by Venom Fox - 07-09-2016, 03:11 PM
RE: Script error (Again) - by Hypercube - 07-09-2016, 07:36 PM
RE: Script error (Again) - by Venom Fox - 07-09-2016, 08:32 PM
RE: Script error (Again) - by Venom Fox - 07-10-2016, 11:54 AM
RE: Script error (Again) - by Venom Fox - 07-10-2016, 01:57 PM



Users browsing this thread: 1 Guest(s)