Also, a slightly sneakier way (not foolproof, but practically) is to use the
switchCamera command to force the player to return to 1st person view all the time. There are two ways you can do that, the easy "hack" way and the more complicated way:
The hack way is simple:
while {alive Player} do
{
Player switchCamera "gunner";
sleep 0.1
};
That will switch the player's camera to "gunner" once every 0.1 seconds : this WILL screw with other things though (for instance inside vehicles where "gunner" view can be a more zoomed-in view), and might not be the best solution.
The more complicated way is to read through
this thread carefully, and to figure out how to find out when the player is changing the camera, and then resetting it to "gunner" or "internal" whenever that happens. Potential (untested) code:
while {alive Player} do
{
_wpos = positionCameraToWorld [0,0,0];
waitUntil {_wpos distance (vehicle Player) > 3};
Player switchCamera "Internal";
hint "3rd person camera is disabled!";
sleep 0.2;
};
As I said, haven't tried, but might work. ;D
Wolfrug out.