PDA

View Full Version : Character height



Kaldrick
11-12-2010, 06:03 AM
Is there any way to change default character height in script?

MaVmAn
11-12-2010, 07:28 AM
You can modify the BaseEyeHeight or the collision cylinder height in the Pawn default properties.

Kaldrick
11-12-2010, 08:02 AM
EyeHeight won't work, as I'm faking first person model, by using third person with camera attached to head. And I'm not quite sure how could I increase height of collision cyllinder?

Kinos
11-12-2010, 09:38 AM
Change the height in the defaultproperties.

Kaldrick
11-12-2010, 10:11 AM
But by what command? As I said, changing eyeheight is not a viable option... So what do I need to write there?

MaVmAn
11-12-2010, 10:26 AM
If you want to change the collision component, try this in you pawn default properties:


Begin Object Name=CollisionCylinder
CollisionRadius=+0021.000000
CollisionHeight=+0044.000000 //Set your value here
End Object
CylinderComponent=CollisionCylinder


But as you said you're using a camera attached to the head, I'm not sure it's a relevant solution...

danm36
11-12-2010, 12:29 PM
If you have attached it to the head, can't you just offset it? Otherwise you may just have to result to modifying the model

MontyPython
11-12-2010, 06:29 PM
I'm loving this thread!

I'm also doing fake 1st person with a camera attached to the head. The way I did it is with a modified pawn with an "eyes" socket. The camera is located at the socket's position. That involved having a custom model, something you might not want. Still, it's just an extra socket. Won't hurt ;)

Works OK except it either clips into walls or through the pawn itself. I didnt think of playing with collision stuff. I'll give it a try ;)

When you say the camera is attached to the head, what do you mean exaclty? Is it simply updated to follow the head coordinates or is it really attached, like a mesh component?