Game Development Community

Basic questions - Adding static enemy guys

by Jesse P · in RTS Starter Kit · 05/03/2008 (12:16 pm) · 2 replies

Ok I just bought the RTS kit and am wondering how to do some very basic things for starters. If you know the answers to any one of these please post some info or post where I can find out, thanks:

1) How can I add several enemy bad guys that stand in one place and my players can shoot at them.
2) Also first off how do I add my players in the editor?
3) I want to add new player models, how would I do that

#1
05/03/2008 (3:57 pm)
Hi Jesse.

1) On the stock RTS-SK, there is no friend or foe distiction, and any unit will atack or move only by your command, so basically what you are asking for, is already there. If you want some units to shoot back, you will have to make some coding.

2) You cannot add units or buildings using the editor, you have to do it by code, check function RTSConnection::createPlayer(...) in example\starter.RTS\server\scripts\core\gameConnection.cs for more details on how to add units to a mission.

3) Simplest way: go to example\starter.RTS\server\scripts\avatars folder and pick one of this: bot.cs, rifleman.cs or shocker.cs. Whitin those files there is a line "shapeFile = "~/data/shapes/shocker/shocker.dts";" that points to a .dts file, which is the model used for that type of unit . Just put the route to your model there.
#2
05/03/2008 (6:10 pm)
Thanks