After hours of going through the UDN Forums, unrealscript reference,googling, dev docs i managed to fix the problem i was facing:
1. I hadn't added my custom game type to DefaultGame.ini. Unrealscript was defaulting to UTDeathmatch which is why CoinGame(WorldInfo.Game) always returned zero.
2. The line mentioned in the post before last was fixed by copy pasting the same line off of a website. There were no syntactical differences between the two so i don't know what went wrong there.
Whilst looking for a solution i stumbled upon some material that could help anyone starting off with unrealscript (will add more as i remember them):
1. I hadn't added my custom game type to DefaultGame.ini. Unrealscript was defaulting to UTDeathmatch which is why CoinGame(WorldInfo.Game) always returned zero.
2. The line mentioned in the post before last was fixed by copy pasting the same line off of a website. There were no syntactical differences between the two so i don't know what went wrong there.
Whilst looking for a solution i stumbled upon some material that could help anyone starting off with unrealscript (will add more as i remember them):
No comments:
Post a Comment