You must be logged in to post messages.
Please login or register

Scenario Design
Moderated by MosheLevi, Mister SCP

Hop to:    
Welcome! You are not logged in. Please Login or Register.No replies
Age of Empires III Heaven » Forums » Scenario Design » rotate Walls rms
Bottom
Topic Subject:rotate Walls rms
alex45362
Skirmisher
posted 06-18-20 10:55 AM EDT (US)         
HI there,

i hope someone can help me, i try to create a random map in aoe 3, i want to make Wall around every Towncenter. This is my current status:

.....
//create Wall
int Wall_normal = rmCreateObjectDef("wall");
rmAddObjectDefItem(Wall_normal,"WallStraight5",1,0.0);

for(i=1; <cNumberPlayers){

rmPlaceObjectDefAtLoc(TCID, i, rmPlayerLocXFraction(i), rmPlayerLocZFraction(i));
vector TCLocation = rmGetUnitPosition(rmGetUnitPlacedOfPlayer(TCID, i));


for(v=1; <=12) {

rmPlaceObjectDefAtLoc(Wall_normal, i, rmXMetersToFraction(xsVectorGetX(TCLocation))-0.06+(0.012*v), rmZMetersToFraction(xsVectorGetZ(TCLocation))+0.06);


//THIS IS THE PROBLEM
rmPlaceObjectDefAtLoc(Wall_normal, i, rmXMetersToFraction(xsVectorGetX(TCLocation))-0.06, rmZMetersToFraction(xsVectorGetZ(TCLocation))-0.06+(0.012*v));
}

HERE A SCREENSHOT:
i want the Walls on Leftside of TownCenter rotated 90 but i cant find any Command to can do that.


https://imgur.com/syYJo13

[This message has been edited by alex45362 (edited 06-18-2020 @ 10:59 AM).]

You must be logged in to post messages.
Please login or register

Hop to:    

Age of Empires III Heaven | HeavenGames