EntityBoundingBox()

Syntax

Result = EntityBoundingBox(#Entity, Flags)
Description
Returns the position of the bounding box, either in local or world coordinate.

Parameters

#Entity The entity to use.
Flags Flags can be one of the following values:
  #PB_Entity_MinBoundingBoxX: Min 'x' position of the bounding box
  #PB_Entity_MaxBoundingBoxX: Max 'x' position of the bounding box
  #PB_Entity_MinBoundingBoxY: Min 'y' position of the bounding box
  #PB_Entity_MaxBoundingBoxY: Max 'y' position of the bounding box
  #PB_Entity_MinBoundingBoxZ: Min 'z' position of the bounding box
  #PB_Entity_MaxBoundingBoxZ: Max 'z' position of the bounding box
combined with one of the following values:
  #PB_Entity_WorldBoundingBox: Positions are returned in world coordinates (default)
  #PB_Entity_LocalBoundingBox: Positions are returned in local coordinates

Return value

Returns the position of the bounding box, either in local or world coordinate.

Supported OS

All

<- EntityBoneZ() - Entity Index - EntityCollide() ->