SetFriendlyFire

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

This function sets the friendly fire setting on or off.

Syntax

  1. bool SetFriendlyFire( bool bEnabled )

Arguments

  • bEnabled - Should friendly fire be enabled or not

Example

  1.  
  2. function onPlayerCommand( player, command, text )
  3. {
  4. if ( command == "setff" ) SetFriendlyFire( true );
  5. }
  6.  

Notes

This command will enable Friendly Fire in the server.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox