Hi;
I want to give my (Projectile) weapon to my AI-Pawn. This AI-Pawn, will not change/pickup it's weapon by PickupFactory. How could I add this (permanent) weapon to my AI_Pawn ?
(Is there any function that gives the weapon to pawn directly...?)
Here is my related classes:
AI-Pawn class:
AI Inventory Manager:Code:class EnemyA_AIPawn extends Pawn placeable; // Socket to use for attaching weapons var(Pawn) const Name WeaponSocketName; //----------------------------------------------- function AddDefaultInventory() { InvManager.CreateInventory(class'BotA_Weapon', false); } simulated function PreBeginPlay() { AddDefaultInventory(); Super.PreBeginPlay(); } ... DefaultProperties { Begin Object class=SkeletalMeshComponent name=EnemyA_Pawn ... End Object ... ControllerClass = class 'theAIController_1' InventoryManagerClass = class 'AIPawnInvManager' }
Code:class AIPawnInvManager extends InventoryManager; defaultproperties { // Create the pending fire array PendingFire(0)=0 PendingFire(1)=0 }



Reply With Quote

Bookmarks