Definition
double,double,double GetCharacterControllerPosition()
Description
Returns the 3D position of the physics character controller attached to the main character.
Return Value
Returns three values representing the 3D position of the physics character controller.
Example
x = 0.0 y = 0.0 z = 0.0 function Init() x, y, z = GetCharacterControllerPosition() end function Update() end
Assume that character controller is placed at the location (1.0, 2.0, 3.0). In this case, the GetCharacterControllerPosition function returns the values 1.0, 2.0 and 3.0 respectively. Therefore, x , y and z will be equal to 1.0, 2.0 and 3.0 respectively.
adminGetCharacterControllerPosition