PDA

View Full Version : setting the DefaultProperties?



Untrue
11-16-2010, 12:09 PM
Hello everyone, I come from UE1 and I thought I'd feel familiar with the UDK..

But surely I must be missing something, The only way to edit defaultproperties is now through Script?

The editor does not rebuild scripts? and has to be restarted?



On to my actual problem,
I'm having problems setting the CollisionHeight of a Cylinder Component.

The GamePawn has this little snippet in the default properties:


begin object Class=CylinderComponent Name=CylComponent
CollisionRadius = 30
CollisionHeight = 28
end object

Components.Add(CylComponent)
CylinderComponent = CylComponent

For some reason the collisionheight is always 78, and the radius is 34.

I have tried to set the bounds directly

begin object Class=CylinderComponent Name=CylComponent
Bounds = (Origin=(X=0,Y=0,Z=0),
BoxExtent=(X=30.000000,Y=30.000000,Z=28.000000),
SphereRadius=55)
end object

But I'm still left with a collisionheight of 78.

When I start the game and write console command "editactor class=pawn"
Setting the collisionheight works as expected.

So what exactly determines the collisionheight? Thanks.

Untrue
11-16-2010, 04:15 PM
Looks like there is some error with the parsing of ini files,
anything after ";" should be threated as a comment.
But UDK doesn't seem to know that, so the following is not allowed:
Game=MyGame.MyGameInfo;UTGame.UTDeathmatch


Took some time to know it was the ini files

Blade[UG]
11-16-2010, 08:17 PM
Are you extending your own pawn, or trying to edit the base classes?