GetFriendlyFire

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function returns the current value for friendly fire.

Syntax

  1. bool GetFriendlyFire()

Arguments

  • none

Example

  1.  
  2. function onPlayerCommand( player, command, text )
  3. {
  4. if ( command == "friendlyfire" ) MessagePlayer( "Friendly Fire is currently set to " + GetFriendlyFire(), player );
  5. }
  6.  

Notes

This function returns a simple true/false value.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox