Excellent... thank you Tony.  I'm slowly building knowledge of the 
functionality of the SDK but some things are still elusive.  Like with 
this.. I figured that Valve would have made provision for this - but I 
was having issues finding it.

Tony Paloma wrote:
> You can write out a string with three float values separated by spaces and
> then use UTIL_StringToVector to parse it back into a Vector.
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Oorin
> Sent: Thursday, January 21, 2010 12:32 PM
> To: [email protected]
> Subject: [hlcoders] Vector Datatype for KeyValues Class
>
>
> I posted this yesterday but from the wrong email account... so if it 
> double posts my apologies.
>
> Long time C++ programmer - relatively new to the Source SDK.
>
> With the KeyValues class... is there a way to read in a Vector or 
> Angle?  For instance I see a lot of:
>
> MySetting
> {
>   "x" "0.4"
>   "y" "-2.5"
>   "z" "1.0"
> }
>
> when it would be easier to use:
> MySetting
> {
>  "offset_vector" 0.4 -2.5 1.0"
> }
>
> It wouldn't be difficult to break this value apart if you read it in as 
> a string - but if valve has already included the functionality - no need 
> to reinvent the wheel.
>
> Thank you for your patience.
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>   


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to