Game Development Community

Unit's Default Location

by Gurpreet Nijjar · in Technical Issues · 03/10/2007 (9:33 am) · 4 replies

When running to RTS Starter Kit demo with the bots, wizards, and the rifleman.

Which file and where does it specify their starting positions? Can this be modified? Please let me know.

Thanks in advance.

#1
03/10/2007 (1:04 pm)
I don't have the RTS kit, (Wish I did). Look for spawn points or a spawn function somewhere, if they are at the center of the world, then there is most likely no spawn loacation specified.
#2
03/10/2007 (1:32 pm)
Thanks!


is it possible to spawn different units to different starting locations?

here is my current code..any ideas? or suggestions?

function RTSConnection::createPlayer(%this, %spawnPoint, %index)
{
   switch(%index % 16)
   {
	case 0:
	    %data = britishgeneralBlock;
	case 1:
	    %data = britishinfantryBlock;
	case 2:
	    %data = britishmilitiaBlock; 
	case 3:
	    %data = britishofficerBlock;
	case 4:
	    %data = nativeamericanBlock;
	case 5:
	    %data = nativeamericanchiefBlock;
	case 6:
	    %data = nativeamericanwarriorBlock;
	case 7:
	    %data = usgeneralBlock;
	case 8:
        %data = usinfantryblueBlock;
	case 9:
	    %data = usinfantrygreenBlock;
	case 10:
	    %data = usmilitiaBlock;
	case 11:
	    %data = usofficerBlock;
	case 12:
	    %data = us12poundBlock;
	case 13:
	    %data = us6poundBlock;
	case 14:
	    %data = british12poundBlock;
	case 15:
	    %data = british6poundBlock;
   }
#3
03/10/2007 (4:22 pm)
You need to post RTS specific questions in the RTS forums :) Click on the "Edit Subscriptions" link above.
#4
03/10/2007 (6:47 pm)
Where is this link and the RTS forums?