GetAllPlayersInBox: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetAllPlayersInBox(x, y, z, bx, by, bz [, bIncludeSelf])}} {{FuncParameters}} {{FuncParam|x|__EDIT...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Gets a table of players that are inside a specific box area.}}


{{FuncSyntax|GetAllPlayersInBox(x, y, z, bx, by, bz [, bIncludeSelf])}}
{{FuncSyntax|GetAllPlayersInBox(x, y, z, bx, by, bz [, bIncludeSelf])}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|x|__EDIT_ME__}}
{{FuncParam|x|The box X location.}}
{{FuncParam|y|__EDIT_ME__}}
{{FuncParam|y|The box Y location.}}
{{FuncParam|z|__EDIT_ME__}}
{{FuncParam|z|The box Z location.}}
{{FuncParam|bx|__EDIT_ME__}}
{{FuncParam|bx|The box X extent.}}
{{FuncParam|by|__EDIT_ME__}}
{{FuncParam|by|The box Y extent.}}
{{FuncParam|bz |__EDIT_ME__}}
{{FuncParam|bz|The box Z extent.}}
{{FuncParamOptional|bIncludeSelf|__EDIT_ME__}}
{{FuncParamOptional|bIncludeSelf|Whether to check for the local player as well, default: '''true'''}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns a table with player identifiers as value.}}


== Example ==
== Example ==

Latest revision as of 19:53, 30 August 2020

GetAllPlayersInBox

Type: Function
Context: Client
Introduced: v1.0

Description

Gets a table of players that are inside a specific box area.

Syntax

GetAllPlayersInBox(x, y, z, bx, by, bz [, bIncludeSelf])

Parameters

  • x
    The box X location.
  • y
    The box Y location.
  • z
    The box Z location.
  • bx
    The box X extent.
  • by
    The box Y extent.
  • bz
    The box Z extent.
  • bIncludeSelf (optional)
    Whether to check for the local player as well, default: true

Return Value

  • Returns a table with player identifiers as value.

Example

__EDIT_ME__

See also

__EDIT_ME__