Hello guys o/
I’m trying to make a racer game like Mario Cart but I’m having troubles with my collectable actor. When I script it I used the standard collision code:
simulated singular event Touch(Actor Other, PrimitiveComponent OtherComp, vector HitLocation, vector HitNormal)
{
if(Pawn(Other) != None && Pawn(Other).Controller.bIsPlayer)
{
SRG_GameInfo(WorldInfo.Game).DestroyTarget(self);
}
}
While I’m using a normal player (like IronGuard) it work perfectly but when I use the Starter Racer Game (The starter kit for racing games)
my car is blocked by my actor. Is this any other code that solves it?