Squirrel/Server/Events/Player/onPlayerKeyStateChange

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<code lang=squirrel> function onPlayerKeyStateChange ( pPlayer, oldkeys, newkeys ) { if ( ( oldkeys & KEY_ONFOOT_FIRE == 0 ) && ( newkeys & KEY_ONFOOT_FIRE != 0 ) ) { Mes...")

Revision as of 15:57, 10 November 2013

  1.  
  2. function onPlayerKeyStateChange ( pPlayer, oldkeys, newkeys ) {
  3.  
  4. if ( ( oldkeys & KEY_ONFOOT_FIRE == 0 ) && ( newkeys & KEY_ONFOOT_FIRE != 0 ) )
  5. {
  6. MessagePlayer ( "Fire key pressed.", pPlayer );
  7. }
  8.  
  9. return;
  10. }
  11.  
Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox