Squirrel/Server/Functions/Game/SetFriendlyFire
From Liberty Unleashed Wiki
(Difference between revisions)
(→Example) |
|||
Line 1: | Line 1: | ||
− | + | {{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
This function sets the friendly fire setting on or off.
[edit] Syntax
bool SetFriendlyFire( bool bEnabled )
[edit] Arguments
- bEnabled - Should friendly fire be enabled or not
[edit] Example
function onPlayerCommand( player, command, text ) { if ( command == "setff" ) SetFriendlyFire( true ); }
[edit] Notes
This command will enable Friendly Fire in the server.
[edit] Related Functions
- CloseGarage
- CloseSSVBridge
- EnableTrains
- GetBoundariesLower
- GetBoundariesUpper
- GetFriendlyFire
- GetGamespeed
- GetGravity
- GetHour
- GetIslands
- GetMinute
- GetSSVBridgeLock
- GetSSVBridgeUpdateTime
- GetSurfaceTraction
- GetTimeLock
- GetWeather
- GetWeatherLock
- IsSSVBridgeUp
- OpenGarage
- OpenSSVBridge
- SetBoundaries
- SetFriendlyFire
- SetGamespeed
- SetGravity
- SetIslands
- SetSSVBridgeLock
- SetSSVBridgeUpdateTime
- SetSurfaceTraction
- SetTime
- SetTimeLock
- SetWeather
- SetWeatherLock