Camera mode to your self
#1

Hi,

How to make that player will not see him self? by changing camera mode? how
Reply
#2

How do you mean, to not see himself? There are many things to change the player camera, you can interpolate camera or just to set camera pos and lookat.
Reply
#3

Not all, but like in CS you see your arms or closer little i don't cere but closer than now.
Reply
#4

I know what you mean, try to attach some object to the players head, and then attach camera to that object, that's solution for me, but again, wait for other replies.
Reply
#5

What is object id that him will be very small and no body see it? because i attach object to player and then camera,but i need really very small object, and how said now seen able.
Reply
#6

'327' is a relatively small object, but by turning it invisible with SetObjectMaterialText, you'll be much better off. Here's a code I've just prepared for first-person mode.

pawn Код:
new HeadObject[MAX_PLAYERS]; //At the top of your script.

//Applying First-Person Mode:
    new Float:x, Float:y, Float:z; //Not necessary to do this, but it gives you an idea.
        GetPlayerPos(playerid, x, y, z);
        AttachObjectToPlayer((HeadObject[playerid] = CreateObject(327, x, y, z, 0, 0, 0)), playerid, -0.07, 0.2, 0.6, 0.0, 0.0, 0.0);
        AttachCameraToObject(playerid, HeadObject[playerid]);
        SetObjectMaterialText(HeadObject[playerid], " ", 0, 140, "Arial", 64, 1, -32256, 0, 1);
Flaws:
- Player can look around 360 degrees, like most first person shooters but the player can still walk in any direction while doing so, making it somewhat unrealistic.
- The camera changes and you can see the player when you attempt to aim, climb or sprint. (Although the camera doesn't change when you sprint, you can still see the inside of your player model when you run or when you look straight down.)
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)