When i press up on the controller i spawn a turret, but there is no indication where abouts, or how far away from the pawn it will spawn, it just appears. So i want to do what they do on many a game and have a semi transparent "Ghost" turret attached to the pawn, which shows the player where it is due to be deployed.
I've set up the ghost turret class, and in my Player controller I'm spawning it like this:
The problem is the turret isn't attaching to my pawn, it kinda bounces off my pawb and stays there. In the turret class I've got bHardAttach set to true.
Any ideas what I'm doing wrong please?
Thanks
I've set up the ghost turret class, and in my Player controller I'm spawning it like this:
Code:
exec function SpawnGhostTurret () { myPawn = UDNPawn(Pawn); TurretDeployment = Spawn(TurretDeploymentClass,self,,myPawn.Location, myPawn.Rotation); if(TurretDeployment!=none) { TurretDeployment.SetBase(Mypawn,, MyPawn.Mesh,MyPawn.PlayerIdentifierSocket); } }
Any ideas what I'm doing wrong please?
Thanks
Comment