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


Introduced in

Version:3.6

Description

Description:Returns section name and plan position for the specified model position.

The command can only be executed after the plan is initialized, using planViewSection, and a brief sleep:

_ctrl planViewSection [house, "Groundfloor", true];
sleep .1;
_info = _ctrl planGetSectionCoords [1,2,3];  

Syntax

Syntax:control planGetSectionCoords position
Parameters:
  • control: Control - PlanView control.
  • position: Array - Position (model-relative) to check.
Return Value:

Array - Returns [section, position], or an empty array, if position is not within any section.

  • section: String - Name of section the specified position is in.
  • position: Array - [x,y] position on the plan that corresponds to the given model position.

Examples

Examples:
_info = _ctrl planGetSectionCoords [1,2,3]; // might return ["Floor1",[1,2]]
_info = _ctrl planGetSectionCoords (_bldg worldToModel (getPosATL player))

Additional Information

See also: planGetModelPos, planViewSection, planGetView
Multiplayer: 
Problems: 

Notes