10.11.2009, 21:11
I've almost done it. I've created a function where npc is given a weapon, he is turned to the player direction and shooting animation is applied. There is also a tiny explosion for the shot and if a player is close enough to the bot, server will decrease his health and add a blood coming out object for a second. Looks pretty realistic. The only problem yet is that my bot won't hold a gun when I give it to it. (GivePlayerWeapon). How do I make it hold the gun? Don't tell me the only way to do this is to create an object with a gun model...