Check if variable is set or not equal to value

CToia

New member
I have a vector3 variable which holds the last sighted position of the player for an NPC. How can I check if this variable is set or not equal to 0,0,0?

I plan to have the NPC walk to the last sighted position and then reset the variable if the player cannot be seen (and then go back to idle state). The last sighted position is being set in a previous node that is based on Can See Object, it appears to be working fine.

Thanks
Casey
 
Top