About This Blog

Most people will find this blog very very dry. It covers my development efforts in the Unreal Development Kit.
If you were redirected here while looking for the Naked Tyrants you can catch us on our Facebook page.
Leave a comment if you like.

Tuesday, 12 April 2011

Step 2.1: Problems in extending GameInfo

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.

No comments:

Post a comment