draw_point3d(VECTOR* pos, COLOR* color, var alpha, var size)

Writes a point - a square colored dot - at a given position in the level, for effects or for testing / debugging purposes.

Parameters:

pos XYZ position in the level
color BGR color vector that determines the point color
alpha Transparency, from 0 (full transparent) to 100 (opaque)
size Point size in quants

Remarks:

Speed:

Fast

Edition:

 A7 

Example:

// display all vertices on a model mesh
action show_my_vertices()
{ var i;
while(1) {
i = ent_vertices(my);
var pos[3];
while (i > 0) {
draw_point3d(vec_for_vertex(pos,my,i),vector(0,0,255),100,5); i -= 1;
}
wait(1);
}
}

See also:

draw_line, draw_line3d

► latest version online