This patch of code here:
simulated singular event Touch(Actor Other, PrimitiveComponent OtherComp, vector HitLocation, vector HitNormal)
{
WorldInfo.Game.Broadcast(self,"Coin touched");
if(Pawn(Other)!=None && Pawn(Other).Controller.bIsPlayer)
{
if(CoinGame(WorldInfo.Game)!=None)
{
CoinGame(WorldInfo.Game).CollectedCoins(self);
WorldInfo.Game.Broadcast(self,"Coin touched by pawn");
}
else
{
CoinGame(WorldInfo.Game).Broadcast(self,"Huh!?");
WorldInfo.Game.Broadcast(self,"Huh!? World Infor");
}
}
else
{
CoinGame(WorldInfo.Game).Broadcast(self,"Okay, my files aren't included");
}
}
is giving me errors. Specifically the part marked in red.
It's most probably because i have a custom GameInfo class which extends UDKGame. Going to review Baptism through fire: Adding mod packages again so that my custom classes get compiled better.
simulated singular event Touch(Actor Other, PrimitiveComponent OtherComp, vector HitLocation, vector HitNormal)
{
WorldInfo.Game.Broadcast(self,"Coin touched");
if(Pawn(Other)!=None && Pawn(Other).Controller.bIsPlayer)
{
if(CoinGame(WorldInfo.Game)!=None)
{
CoinGame(WorldInfo.Game).CollectedCoins(self);
WorldInfo.Game.Broadcast(self,"Coin touched by pawn");
}
else
{
CoinGame(WorldInfo.Game).Broadcast(self,"Huh!?");
WorldInfo.Game.Broadcast(self,"Huh!? World Infor");
}
}
else
{
CoinGame(WorldInfo.Game).Broadcast(self,"Okay, my files aren't included");
}
}
is giving me errors. Specifically the part marked in red.
It's most probably because i have a custom GameInfo class which extends UDKGame. Going to review Baptism through fire: Adding mod packages again so that my custom classes get compiled better.
No comments:
Post a Comment