Jump to content

Starting entities placement suggestion


Recommended Posts

I think the scout looks better in front of the civil center with the females on the one side and the infantry on the other.

I don't seam to able to upload a screen-shot (Why? How? In other posts it worked?)

However I think it's understandable what I describe.

Edit: Here's the screenshot:

post-14196-0-35358900-1331658348_thumb.j

The code for that could look similar to:

// Place starting entities
placeObject(x, z, startEntities[0].Template, i+1, buildAngle);
for (var typeIndex = 1; typeIndex < startEntities.length; typeIndex++)
{
var numUnits = (startEntities[typeIndex].Count !== undefined ? startEntities[typeIndex].Count : 1);
for (var unitIndex = 0; unitIndex < numUnits; unitIndex++)
{
placeX = x + Math.pow(-1, typeIndex-1) * (3 + round(numUnits/2 + 1/4) - unitIndex);
placeZ = z + Math.pow(-1, round(typeIndex/2 - 1/4)) * (4 - round(numUnits/2 - 1/4) + unitIndex);
placeObject(placeX, placeZ, startEntities[typeIndex].Template, i+1, buildAngle);
};
};

Edited by FeXoR
Link to comment
Share on other sites

This doesn't work well because the units disappear behind the building when the camera is rotated by default.

Having them on the two sides facing the camera makes the most sense (which is what it does at the moment, IIRC).

Link to comment
Share on other sites

This doesn't work well because the units disappear behind the building when the camera is rotated by default.

Having them on the two sides facing the camera makes the most sense (which is what it does at the moment, IIRC).

Haven't thought about that, makes sense. ;)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...