Triggers/Category Point

From SC2Mapster Wiki
Jump to: navigation, search

Creation And Modification[edit | edit source]

Point From XY[edit | edit source]

  • Function. Returns a 2D location as a point. This allows you to specify any location on the map grid as a viable value for a point parameter.

Point From XYZ[edit | edit source]

  • Function. Returns a 3D location as a point. This allows you to specify any 3D location on the map as a viable value for a point parameter.

Move Point[edit | edit source]

  • Action. Moves a point to the specified position.

Make Point Face Angle[edit | edit source]

  • Action. Changes the facing of a point.

Set Point Height[edit | edit source]

  • Action. Changes the height of a point, relative to the terrain.

Measurements[edit | edit source]

Angle Between Points[edit | edit source]

  • Function. Returns the angle from point 1 to point 2 as a real value, in degrees.

Distance Between Points[edit | edit source]

  • Function. Returns the distance between two points as a real value.

Facing Angle Of Point[edit | edit source]

  • Function. Returns the facing angle of the specified point as a real value, in degrees.

Height Of Point[edit | edit source]

  • Function. Returns the height of the specified point, relative to the terrain, as a real value. To place a point with a non-zero height in the Terrain Editor, use the Three Dimensional point type.

X Of Point[edit | edit source]

  • Function. Returns the X coordinate of the specified point as a real value.

Y Of Point[edit | edit source]

  • Function. Returns the Y coordinate of the specified point as a real value.

Point Is In Region[edit | edit source]

  • Function. Returns true if the specified point is located within the specified region.

Offsets[edit | edit source]

Point Facing Angle[edit | edit source]

  • Function. Returns a point with the position of the specified point, and the facing of the specified angle.

Point Offset Towards Point[edit | edit source]

  • Function. Returns a point offset by a specified distance toward a target point.

Reflected Point[edit | edit source]

  • Function. Returns the point that an object would bounce to if it was travelling from the source point and hit a wall with the specified normal angle at the target point.

Point With Offset[edit | edit source]

  • Function. Returns a point offset by given horizontal and vertical distances.

Point With Polar Offset[edit | edit source]

  • Function. Returns a point offset by a distance toward an angle, specified in degrees.

Point With Z Offset[edit | edit source]

  • Function. Returns a point with the X and Y position of the specified point, and Z position of the specified Z.

Random Point Between Points[edit | edit source]

  • Function. Returns a random point along the line segment connecting the specified points.

Pathing[edit | edit source]

Pathing Cost Between Points[edit | edit source]

  • Function. Returns the ground pathing cost between two points as an integer.

Points Connected By Pathing[edit | edit source]

  • Function. Returns true if the specified points are connected by ground pathing.

Point Is Passable[edit | edit source]

  • Function. Returns true if the specified point is pathable to ground units.