Squirrel/Server/Functions/Game/SetFriendlyFire

From Liberty Unleashed Wiki
Revision as of 02:48, 7 January 2010 by Force (Talk | contribs)

Jump to: navigation, search

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