Game Development Community

Adding new animated models that aren't players

by Chris Calef · in Technical Issues · 10/07/2003 (10:25 am) · 5 replies

Can anyone give me a hint as to what class I would use for an autonomous moving entity that is not a player (basically, a "monster" for single player games?) I'm trying to use Item for this, but it doesn't have any setActionThread, etc. Do I have to use Player class for everything in the game, or else write my own class based on ShapeBase?
Thanks!

#1
10/07/2003 (10:53 am)
You want an AIPlayer.
#2
10/08/2003 (5:43 am)
Hi Chris

I use the player code for all my aimonsters like spiders,trolls
,goblins,demons and moore !
And it works fine even the spiders with 8 legs !


-Billy
#3
10/08/2003 (8:11 am)
Hey, thanks!
So, does the monster model need to have the same body parts/nodes as the player model? If I make a model from scratch are there certain things I have to include in it?

Also, one more question, in trying to use the tutorial for adding a bot to your game, I found that I seem to have a different version of the code for AIPlayer than what was used for the tutorial (I have CVS from about a month ago) -- at least, when I type

$myBot01 = aiAddPlayer("Bill Gates");

in at the console, I get

(0): unable to find function aiAddPlayer

And I can't find that function anywhere in the code, either. Did I do something wrong somewhere?

Thanks again!
Chris
#4
10/08/2003 (8:12 am)
Err, excuse me, I meant to say "add a bot to _my_ game" :-)
#5
10/09/2003 (6:13 am)
For the skel setup you dont really need the the same skel parts
as the player ,you must have one Bip01 and the others doesnt matter if you not shall set things from the player block like
armthread and footprints then you need arms and foot to .

maybe forgot to add the aiclient and aiplayer for the aiaddplayer
in the source build !
because the aiaddplayer function is in the aiclient code .