Modded Lobby Help

Posts 1–3 of 3 · Page 1 of 1
Modded Lobby Help
Ok well i'm working on a mod and can't figure out key press commands like this one for laser sight. You are supposed to press n and it comes on. But it won't work.

Code:
doLS()
{
        self endon( "disconnect" );
        self notifyOnPlayerCommand( "n", "+actionslot 1" );
        while(1)
        {
                self waittill ( "n" );
                self playSound("claymore_activated");
                self setclientDvar("laserForceOn", 1);
                self iPrintlnBold("^2Laser Sight On");
                wait 0.05;
                self waittill ( "n" );
                self playSound("claymore_activated");
                self setclientDvar("laserForceOn", 0);
                self iPrintlnBold("^2Laser Sight Off");
                wait 0.05;
        }
}
Can anyone help me with this?

EDIT:

@[MPGH]Archangel
Sorry won't happen again

@solice12
hahaha thats what House said too
wrong section, post your questions in the help section

/moved
I'm no experienced modder, but the code looks wrong, I'm not sure if i'm right here.
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?