AddVertex

Category: Objects / Vertices
Since engine version: 1.0 OC

Description

Adds a new vertex to an object.

Syntax

bool AddVertex(int x, int y);

Parameters

x:
X coordinate, relative to the object center.
y:
Y coordinate, relative to the object center.

Remark

Notice: with any vertex updated caused by stretching or rotation of the object (e.g. building or growth) the vertices will be reset to their original defined position unless a special vertex mode is selected.

Example

GetHiRank(0)->AddVertex(0,50);
Makes the captain of the first player stick to the ground.
See also: GetVertex, GetVertexNum, InsertVertex, RemoveVertex, SetVertex
jwk, 2002-04