A tad bit stuck guys i am trying to allow the enemy to change between weapons when in its Attack state but i'm not sure how to do this at first i was thinking a timer but that is too predictable any suggestions would be incredibly help full
Announcement
Collapse
No announcement yet.
Enemy Pawn Weapon Switching
Collapse
X
-
I guess just like regular pawns you can just switch the weapons in their inventory with the change/switch weapon command and the index.
They should probably change weapons based on occasion? How close they are to the player so proximity /range also if they are out of ammo. Which is usually not the case since most enemies have infinite ammo.
-
What have i written wrong here
Code:simulated function ClientWeaponSet (Spell_Weapon NewWeapon) { If (distanceToPlayer > LongattackDistance) { (Spell_Weapon FireballWeapon, true, false); } else if (distanceToPlayer <= MidattackDistance) { (Spell_Weapon BlizzardWeapon, true, false); } else (distanceToPlayer < ShortattackDistance) { (Spell_Weapon TornadoWeapon, true, false); } }
Comment
Comment