UDK : UTWeap_RocketLauncher gift CreateInventory: Any idea why this does not work properly?
- by John Sloan
I am giving the player an instanced class of UTWeap_RocketLauncher in an instance of UTGame.
PlayerPawn.CreateInventory(class'FobikRocketLauncher',false); // Does not work
PlayerPawn.CreateInventory(class'FobikLinkGun',false); // Works
Even if I give the original class (eg. UTWeap_RocketLauncher) it does not actually show up. However if I do a "GiveWeapons" cheat, I get it just fine. It also works if I had code it into the map. - But UTWeap_LinkGun works fine either way.
Any ideas? It shows the default ammo amount, and the icon on the HUD.