AMX Mod X API Documentation

Signature
stock xs_vec_sub_scaled(const Float:in1[], const Float:in2[], Float:scalar, Float:out[]){ out[0] = in1[0] - in2[0] * scalar; out[1] = in1[1] - in2[1] * scalar; out[2] = in1[2] - in2[2] * scalar;}
Description

Subtracts the second vector scaled by a scalar from the first one.

Parameters
  • in1 Vector to subtract from.
  • in2 Vector to scale and subtract.
  • scalar Scalar to scale the second vector with.
  • out The output vector. Can be one of the input vectors.
No return value
Назад
Верх