I'm trying to programming my inherited pawn class to have the impact hammer and translocator with infinite ammo. So far my code appears as such:
What do I need to code to have the enemy (inherited) pawns to have those weapons? Am I on the right track? How do I make these weapons invisible (The enemy are supposed to have this ability without weapons)? Thank you for any help.
Code:
local AIController AIC;
local Weapon ImpactHammer, Translocator;
foreach DynamicActors( class'AIController', AIC )
{
ImpactHammer = Spawn(class'UTWeap_ImpactHammer');
ImpactHammer.Instigator=AIC.Pawn;
//ImpactHammer.BecomeItem();
ImpactHammer.AddAmmo(1000);
AIC.Pawn.InvManager.AddInventory(ImpactHammer);
}
What do I need to code to have the enemy (inherited) pawns to have those weapons? Am I on the right track? How do I make these weapons invisible (The enemy are supposed to have this ability without weapons)? Thank you for any help.