So i have this cylinder, if i place it in the level ok it Works, but if i spawn it it won’t work.
Any idees help please.
//-----------------------------------------------------------
// Description: This represents a debug test of a collision cylinder
//-----------------------------------------------------------
class GOTAMP2CylActorTest extends actor
placeable;
var() const CylinderComponent CylinderComponent;
event postBeginPlay()
{
bCollideAsEncroacher = false;
}
event Touch(Actor Other, PrimitiveComponent OtherComp, vector HitLocation, vector HitNormal)
{
super.Touch( Other, OtherComp, HitLocation, HitNormal);
worldinfo.game.broadcast(Self, "You have collided with a cylinder");
}
event tick(Float deltaTime)
{
DrawDebugString(self.location + vect(0,0,50) , bCollideActors@" The cylinder collide actors as encroacher "@bCollideAsEncroacher@" Colide actors of cylComponent "@CylinderComponent.CollideActors );
}
DefaultProperties
{
bCollideActors=true
bBlockActors=false
Begin Object Class=CylinderComponent Name=CylinderComp
CollisionRadius=32
CollisionHeight=48
CollideActors=true
BlockActors=false
End Object
Components.Add( CylinderComp )
CollisionComponent=CylinderComp
CylinderComponent = CylinderComp;
bStatic=false
}