Hi,

Sorry if this is a hilariously noob question but I'm trying to make my first UnrealScript, I started using UnrealEd yesterday and I've moved onto making a SuperLeviathan class, which I'd quite like to be a subclass of ONSMobileAssaultStation with 10,000 health and ~ 3x the normal acceleration / max speed of a typical leviathan.

Unfortunately, no luck. I tried sifting through some of ONSMobileAssaultStation's superclasses to try to figure out how that class actually sets its speed and health, etc. itself, but couldn't find anything. I also tried a couple of things which seemed reasonably logical, to no avail. It behaves like a standard Leviathan.

Here's my code for a SuperLeviathan:

I also created a SuperLeviathanFactory subclass of ONSMASFactory, and used UnrealEd to insert a SuperLeviathanFactory into a modified version of the Torlan map, with the VehicleClass variable inherited from SVehicleFactory set to SuperLeviathan as appropriate (I think). Behaves just like a normal leviathan when I test it.

Can anyone give me some getting started tips / anything I'm doing glaringly wrong? Sorry if this was a bit of a long / nooby post. I'm a pretty experienced programmer so once I get to grips the basics of UnrealScripts I should stop having such basic problems If anyone can point me to some good tutorials that'd be appreciated also.

Thanks in advance for any help.

Giftiger Wunsch

~~EDIT: This is for UT2004, if that's significant.

Sorry if this is a hilariously noob question but I'm trying to make my first UnrealScript, I started using UnrealEd yesterday and I've moved onto making a SuperLeviathan class, which I'd quite like to be a subclass of ONSMobileAssaultStation with 10,000 health and ~ 3x the normal acceleration / max speed of a typical leviathan.

Unfortunately, no luck. I tried sifting through some of ONSMobileAssaultStation's superclasses to try to figure out how that class actually sets its speed and health, etc. itself, but couldn't find anything. I also tried a couple of things which seemed reasonably logical, to no avail. It behaves like a standard Leviathan.

Here's my code for a SuperLeviathan:

Code:

class SuperLeviathan extends ONSMobileAssaultStation; simulated function PostBeginPlay() { OutputGas=500.0 EngineInertia=500.0; EngineBrakeFactor=0.0; MaxDesiredSpeed=500.0; HealthMax=10000; Super.PostBeginPlay(); }

Can anyone give me some getting started tips / anything I'm doing glaringly wrong? Sorry if this was a bit of a long / nooby post. I'm a pretty experienced programmer so once I get to grips the basics of UnrealScripts I should stop having such basic problems If anyone can point me to some good tutorials that'd be appreciated also.

Thanks in advance for any help.

Giftiger Wunsch

~~EDIT: This is for UT2004, if that's significant.

## Comment