how to use player.SetCameraPos function?

Started by BigcaT_, Jan 02, 2015, 02:20 AM

Previous topic - Next topic

BigcaT_

yesterday my friend told me about this function, but i don't know how to use it..

 :) :'(


BigcaT_

#2

Castagna

player.SetCameraPos( Vector pos, Vector look );
Vector pos/look are vectors itself. Syntax: Vector( float/integer.X, float/integer.Y, float/integer.Z)

Example:

(just defined the arguments as locals to make it look simple)

local vector1 = Vector ( 1000, -1000, 5000 ), vector2 = Vector ( 3000, -250, 1000 );

player.SetCameraPos( vector1, vector2 );

This is pretty much similar to the spawn-camera settings, as there's a position and look vector. Note that the values i put in this example  were not tested.

BigcaT_

#4
Quote from: Castagna on Jan 04, 2015, 03:18 AMplayer.SetCameraPos( Vector pos, Vector look );
Vector pos/look are vectors itself. Syntax: Vector( float/integer.X, float/integer.Y, float/integer.Z)

Example:

(just defined the arguments as locals to make it look simple)

local vector1 = Vector ( 1000, -1000, 5000 ), vector2 = Vector ( 3000, -250, 1000 );

player.SetCameraPos( vector1, vector2 );

This is pretty much similar to the spawn-camera settings, as there's a position and look vector. Note that the values i put in this example  were not tested.
thanks.
 
Topic LOcked !