This is his post
Ok, I'm working on making on class that will spawn two parts of a turrets, I think the code I have should work but for some reason it doesn't. Compiles fine though, but I can't see it if i place it in the editor or summon it ingame. Blocks my movement in game though. Heres what I have so far.
code:--------------------------------------------------------------------------------
class USkaarjRotTurret extends StationaryPawn;
var class<actor> BaseClass;
var class<actor> TopClass;
var actor TurretBase;
var actor TurretTop;
var float topzoffset;
event spawned()
{
local vector baselocation, toplocation;
TurretBase = spawn(BaseClass,,,,);
baselocation = TurretBase.location;
toplocation.z = topzoffset;
toplocation = baselocation+toplocation;
TurretTop = spawn(TopClass,,,toplocation,);
}
defaultproperties
{
BaseClass='Turrets.USTurretBase'
TopClass='Turrets.USTurretTop'
topzoffset=256
}
--------------------------------------------------------------------------------
it's pretty simple, spawn the base and spawn the top a set offset above it, offset I'm gonna tweak when i get it to actually show up. but for some reason it ain't workin. and i thought this was gonna be the easy part of it.
He is trying to make it spawn to meshes one for the top and one for the bottom what should he do to do this???