Hello
Im develloping a mod on UT2004. I want to create a sentry.
Basically, you need to build the sentry base during few seconds, and then, once built, the sentry "head" would pop up and kill the bad guys.
So, I divided it into a sentry "legs" and a sentry "head"
The sentry base is basically an actor and after a while, it runs FinishedBuild()
FinishedBuild spawn the Sentry head. That head just inherit (extends) a pawn.
Im having troubles while spawning the head. No matter how I try, spawn returns me None all the time and refers me no error message.
Here's the code
so, what is annoying is that Pawn is never spawned and I got absolutely no error message.
Im surely missing something here... but what ?
please, help
--
Best Regards,
Im develloping a mod on UT2004. I want to create a sentry.
Basically, you need to build the sentry base during few seconds, and then, once built, the sentry "head" would pop up and kill the bad guys.
So, I divided it into a sentry "legs" and a sentry "head"
The sentry base is basically an actor and after a while, it runs FinishedBuild()
FinishedBuild spawn the Sentry head. That head just inherit (extends) a pawn.
Im having troubles while spawning the head. No matter how I try, spawn returns me None all the time and refers me no error message.
Here's the code
Code:
class UNF_SentryLegs Extends UNF_BuildingObject; /* extends actor */ var class<pawn> Top; function FinishedBuild() { local Pawn P; P = Spawn( Top, Owner,, Location, Rotation ); UNF_Pawn(Owner).DebugMsg("spawning pawn:" $ string(P)); } defaultproperties { Top=Class'UNF.UNF_Sentry' Damage=60 DamageRadius=64 DismantleAmmo=40 DrawType=DT_Mesh Mesh=SkeletalMesh'UNF_rc.UNF_SentryLegsMesh' DrawScale=1.25 } ///////////////////////////////////////////////////////// class UNF_Sentry extends Pawn; defaultproperties { ControllerClass=Class'UNF_SentryController' bWorldGeometry=true bCanBeDamaged=true bStasis=false Health=150 Mass=300 Mesh=SkeletalMesh'UNF_SentryTopMesh1' } /////////////////////////////////////////////////////////
Im surely missing something here... but what ?
please, help

--
Best Regards,
Comment