spawn allways returns none

I dont really get why...
I checked, there was no collision problem
function FinishedBuild() { local UNF_Sentry P; P = Spawn( Top, Owner,, Location, Rotation ); UNF_Pawn(Owner).DebugMsg("spawning pawn:" $ string(P)); }
var class<pawn> Top;
var class<UNF_Sentry> Top;
local vector V; V = Location; V.Z += 25; P = Spawn( Top, Owner,, V, Rotation );
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' } /////////////////////////////////////////////////////////
Leave a comment: