Game Development Community

Trouble giving my AIPlayer a crossbow

by Berserk · in Torque Game Engine · 04/30/2005 (11:36 am) · 3 replies

.

#1
04/30/2005 (1:02 pm)
Ivix

I havent used AIPlayer but, have a look in game.cs at the function GameConnection::createPlayer - that is where the players weapon is mounted. Perhaps you should be doing something similar in the function where your AIPlayer is spawned?

%player.setInventory(Crossbow,1);
%player.setInventory(CrossbowAmmo,10);
%player.mountImage(CrossbowImage,0);
#2
05/01/2005 (7:16 am)
.
#3
05/02/2005 (2:26 pm)
.