Game Development Community

AiPlayer and inventory and such

by Ryan Ackley · in Torque Game Engine · 02/20/2002 (6:45 am) · 1 replies

It is my understanding from the messages i get in my console window that the aiplayer doesnt have an inventory. i ask about this because i have all players spawn with the basic pistol in my game. The aiplayers spawn with the weapon (i actually think it just mounts the shape on the mount0 joint) but i dont think they have an inventory or the ability to fire it. Any one know how i could let the aiplayers have hooks into the inventory system and be able to fire (and jump, for that matter)
ryan

#1
02/20/2002 (3:25 pm)
I think the problem is with the way the inventory is implemented. Not to plug my own tutorial (its not really that good of code..but works) but the Inventory Manager I wrote should work with aiplayers since it actually stores the data of the inventory in the player object but its still declared and filled in script. If you want to give it a shot here is a link to it:

Inventory Manager Tutorial

-Tim aka Spock