UDK : UTWeap_RocketLauncher gift CreateInventory: Any idea why this does not work properly?

Posted by John Sloan on Game Development See other posts from Game Development or by John Sloan
Published on 2011-11-24T04:32:01Z Indexed on 2011/11/24 10:24 UTC
Read the original article Hit count: 252

Filed under:

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.

© Game Development or respective owner

Related posts about udk