I have a problem with WantsToViewVehicle function.
My code changes only the type of camera, but not the player.
This is my code:
i call the function with in UpdateScoring:
My code changes only the type of camera, but not the player.
This is my code:
i call the function with in UpdateScoring:
Code:
CameraControlInfoV01 a;
a.mID = vinfo.mID;
a.mCameraType = 4;
int uu = WantsToViewVehicle(a);
Code:
unsigned char ExampleInternalsPlugin::WantsToViewVehicle(CameraControlInfoV01& camControl)
{
if (camControl.mID == -1) {
return(false);
}
else {
/* long id = camControl.mID;
long cam = camControl.mCameraType;
camControl.mID = id;
camControl.mCameraType = 0;*/
return (true);
}
}