Player.SetBoundaries

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function sets the players boundaries.

Syntax

  1. bool player.SetBoundaries( Vector lowerBounds, Vector upperBounds )

Arguments

  • lowerBounds - The lower boundaries
  • upperBounds - The upper boundaries

Example

This example command sets the players world boundaries to (-1000, -1000, -1000), (1000, 1000, 1000).

  1.  
  2. function onPlayerCommand( pPlayer, szCommand, szText )
  3. {
  4. if ( szCommand == "setboundaries" )
  5. {
  6. local up = Vector( -1000.00, -1000.00, 1000.00 ), lower = Vector( -1000.00, -1000.00, -1000.00 );
  7. pPlayer.SetBoundaries( up, lower );
  8. }
  9. return 1;
  10. }
  11.  

Notes

The event onPlayerCommand was used in this example. More info about this in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox