Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.19

Description

Description:

Returns the center of the specified selection, relative to the object (in model space). Only applies to the Fire Geometry LOD.

Note: In V1.40+, this command is obsolete. Use selectionPosition with the option "bbox_center".

Syntax

Syntax:object selectionCenter selection
Parameters:
  • object: Object - Object to check.
  • selection: String - Named Selection (see the VBS3 Developer Reference).
Return Value:Array

Examples

Examples:
Returns the center of the player "head" selection:
_headcenter = player selectionCenter "head"

Additional Information

See also: selectionPosition
Multiplayer:
Problems:

Notes