SetVertexXY
Category: Objects
/ Vertices
Since engine version: 4.9.1.0 GWE
Description
Sets both X and Y position of a vertex
Syntax
bool SetVertexXY
(int iIndex, int iXPos, int iYPos, object pObj);
Parameters
- iIndex:
Vertex number
- iXPos:
Desired X offset of the vertex
- iYPos:
Desired Y offset of the vertex
- pObj:
[opt]
Target object
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
SetVertexXY(3, -5, -10, GetCrew(0,0));
Sets the third vertex of the first clonk of the first player to -5/-10
flgr, Januar 2002