Game Development Community

How to add Enemy ?

by Zettamax · in Torque 3D Beginner · 07/12/2013 (7:50 am) · 4 replies

Hi all,
I recently started study Torque 3D v3.0,now i want to add enemy in my project how can i do that?

P.S.Sorry for my bad English,I'm Italian.

About the author


#1
07/12/2013 (8:18 am)
Do a search here on the forum with "spawn bot". That will help you a lot. plenty of great threads on it :o)
#2
07/12/2013 (8:26 am)
Start by completing this. Then complete this series. You could skim that second part for the enemy spawning part, I suppose - but the whole thing is awesome.
#3
07/12/2013 (9:06 am)
Thanks for the answer,but I have two problems installing the Recast Resource,when it say "Add the new files in the Engine/source/T3D/nav directory to your ProjectName DLL Visual Studio project. All of them. Even the ones in the nav/recast directory, which are the Recast/Detour source files." what i must do ? and when it say "In My Projects/Project/game/tools/worldEditor/scripts/editors/creator.ed.cs, we need to add a few small hooks to make our new AI classes show up in the editor" I don't have the file creator.ed.cs but I have creator.ed.cs.edso
#4
07/12/2013 (11:47 am)
Whoa - you have to apply the recast/detour resource to the T3D source, not the FPS Tutorial package. If you are using the FPS Tutorial kit then you can't apply the recast/detour portion - but you can skim the article for the part where he talks about spawning the bots.

You can also look at my AI Tutorial scripts on GitHub, especially scripts/server/aiPlayer.cs in the AIPlayer::spawn() function.