I try to make (my first script) a script which should do that :
gui_angle_calculation.lua :
Code: Select all
1) until Build command is activated
2) If the building to build is "MyHouse"
then
2.1.1) Draw a line from the center of "MyHouse" to my mouse world (x,z)[color=#FF0000]*[/color] position
2.1.2) AngleCalculationVariable = angle calculation
else
2.2.1 ) do nothing
end if
MyHouse.bos
Code: Select all
create()
{
1) LocalAngle = AngleCalculationVariable
2) Rotate My house of LocalAngle
etc.
}
etc.