Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
vlen
From Quake Wiki
float vlen(vector vec)
Contents
Usage
Gets the length of the vector. This is always a positive value.
Parameters
- vec
- The vector to get the length of.
Return
The length of the passed vector.
Example
// Check to make sure a monster's enemy is in range for an attack float distance = vlen(self.enemy.origin - self.origin); if (distance > 512) return;