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