Squirrel/Server/Functions/Game/SetFriendlyFire
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ This function sets the friendly fire setting on or off. == Syntax == <code>bool SetFriendlyFire( bool bEnabled )</code> == Arguments == * '''bEnabled''' - Should friendly fir...) |
(→Example) |
||
Line 12: | Line 12: | ||
== Example == | == Example == | ||
− | |||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | + | function onPlayerCommand( player, command, text ) | |
+ | { | ||
+ | if ( command == "setff" ) SetFriendlyFire( true ); | ||
+ | } | ||
</code> | </code> | ||
=== Notes === | === Notes === | ||
− | + | This command will enable Friendly Fire in the server. | |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Game}} | {{Squirrel/Server/Functions/Game}} |
Revision as of 02:48, 7 January 2010
This function sets the friendly fire setting on or off.
Syntax
bool SetFriendlyFire( bool bEnabled )
Arguments
- bEnabled - Should friendly fire be enabled or not
Example
function onPlayerCommand( player, command, text ) { if ( command == "setff" ) SetFriendlyFire( true ); }
Notes
This command will enable Friendly Fire in the server.
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