Game Development Community

Abaout Players shape refresh

by Dimitris Matsouliadis · in Torque 3D Professional · 01/30/2010 (9:09 pm) · 0 replies

hi :)
i have a problem.. i think i dont know how i can update player statistics in game.
i use this code with weelmouse button

function ShapeBase::PlayerCamera(%this, %State)
{
if (%State $= "zoomIn")
{
%setZoom = -1;
}


if (%State $= "zoomOut")
{
%setZoom = 1;
}

%ZoomCamIs = %this.cameraMaxDist;
%this.cameraMaxDist = %ZoomCamIs + %setZoom;
echo("The player camera of " SPC %this @ " is: " @ %ZoomCamIs + %setZoom );
}

in console %this.cameraMaxDist geting the uptades and have very good count ++ or --
but player camera do nothing. i dont have zoom in or out.
How can i make the refresh on a player? Know any to help me?
Thanks :)