Thread: [Solved] Check if Vector is valid
View Single Post
Author Message
scorpius2k1
Senior Member
Join Date: Feb 2016
Old 07-20-2018 , 15:11   Check if Vector is valid
Reply With Quote #1

How would I go about checking if all parts of a Vector[3] are valid? I am guessing the proper description would be NULL_VECTOR? I have a script I am trying to debug with this error in my console:

Code:
Bad SetLocalOrigin(nan,nan,nan) on info_particle_system
Presumably, this happens when I am calling
PHP Code:
TeleportEntity(iEntityfOriginNULL_VECTORNULL_VECTOR
I'm sure it's simple, just need to make sure I am doing it right, thanks all!
__________________
{__ PIRATES COVE __} ● HIGH-KILL Community | Stats ●
Half-Life 2: Deathmatch
66.151.244.149:27016 => CONNECT

Last edited by scorpius2k1; 07-21-2018 at 11:47. Reason: Solved
scorpius2k1 is offline