_vec(float x,float y,float z);

Converts 3 floats to a temporary VECTOR* pointer, to be used as a parameter for engine functions called from external languages.

Parameters:

x - converted to the 1st vector element.
y - converted to the 2nd vector element.
z - converted to the 3rd vector element.

Returns:

VECTOR*

Speed:

Fast

Remarks:

Use this function only for passing temporary vectors to functions, but not for permanent vector pointers.

Example:

ent_create("cube.mdl",_vec(100.0,200.0,300.0),NULL);

See also:

vector, _str, _chr