Squirrel/Server/Functions/Game/SetFriendlyFire

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
 
Line 1: Line 1:
__NOTOC__
+
{{Squirrel/Title|SetFriendlyFire}}
 
This function sets the friendly fire setting on or off.
 
This function sets the friendly fire setting on or off.
  

Latest revision as of 10:45, 11 October 2010

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function sets the friendly fire setting on or off.

[edit] Syntax

  1. bool SetFriendlyFire( bool bEnabled )

[edit] Arguments

  • bEnabled - Should friendly fire be enabled or not

[edit] Example

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

[edit] Notes

This command will enable Friendly Fire in the server.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox