Squirrel/Server/Functions/Game/GetBoundariesUpper
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with '{{Squirrel/Title|GetBoundariesUpper}} This function returns the upper world boundaries. == Syntax == <code>Vector GetBoundariesUpper()</code> == Arguments == * '''none''' ==…') |
(→Example) |
||
Line 12: | Line 12: | ||
== Example == | == Example == | ||
− | |||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | - | + | function onPlayerCommand( pPlayer, szCommand, szText ) |
+ | { | ||
+ | if ( szCommand == "upboundaries" ) | ||
+ | { | ||
+ | MessagePlayer( "Upper boundaries - " + GetBoundariesUpper(), pPlayer ); | ||
+ | } | ||
+ | |||
+ | return 1; | ||
+ | } | ||
</code> | </code> | ||
=== Notes === | === Notes === | ||
− | + | The function [[Squirrel/Server/Functions/Messages/MessagePlayer|MessagePlayer]] and event [[Squirrel/Server/Events/Player/onPlayerCommand|onPlayerCommand]] were used in this example. More info about them in the corresponding pages. | |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Game}} | {{Squirrel/Server/Functions/Game}} |
Latest revision as of 15:40, 29 September 2010
This function returns the upper world boundaries.
[edit] Syntax
Vector GetBoundariesUpper()
[edit] Arguments
- none
[edit] Example
function onPlayerCommand( pPlayer, szCommand, szText ) { if ( szCommand == "upboundaries" ) { MessagePlayer( "Upper boundaries - " + GetBoundariesUpper(), pPlayer ); } return 1; }
[edit] Notes
The function MessagePlayer and event onPlayerCommand were used in this example. More info about them in the corresponding pages.
[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