Author Topic: Turning Green Light On (client sided) [Solved]  (Read 1440 times)

How could I turn green light on client sidedly? I tried commandToServer('greenLight'); but when I do that it doesn't think I can use green light for some reason. I've also tried tracing when I did /greenLight but found nothing.
« Last Edit: January 07, 2013, 10:24:39 PM by jes00 »

Typing /command into chat is the same exact thing as sending commandToServer('command');

Typing /command into chat is the same exact thing as sending commandToServer('command');
He knows, he just said that he tried that and it didn't work, so he's asking if he's doing something wrong or if there's a different way.

He knows, he just said that he tried that and it didn't work, so he's asking if he's doing something wrong or if there's a different way.
And I'm telling him that it literally has to work. /greenlight does nothing besides send commandToServer('greenlight');

If it doesn't work, then the server you're on broke /greenlight.

However, if you for some reason maintain that this does not work whatsoever, you could do this:
Code: [Select]
function setGreenLighthandicappedWay()
{
    nmh_type.setValue("/greenlight");
    nmh_type.send();
}
« Last Edit: January 07, 2013, 07:13:18 PM by !Trinick »

You can't use the Greenlight if you haven't clicked the Greenlight button on the main menu though, so the client must be sending another variable with some sort of confirmation that the user has pressed the Greenlight button before.

You can't use the Greenlight if you haven't clicked the Greenlight button on the main menu though, so the client must be sending another variable with some sort of confirmation that the user has pressed the Greenlight button before.

You can't use the Greenlight if you haven't clicked the Greenlight button on the main menu though
There is absolutely no proof of this whatsoever. EDIT: nevermind, below post
« Last Edit: January 07, 2013, 09:35:31 PM by Ipquarx »

-snip-

Singleplayer server? That shouldn't work on other servers. I had to use this when making a keybind for it:

Code: [Select]
commandToServer('greenlight',$Pref::GreenlightCheck);