Is it possible to turn a building using lua?
I want to try to angle solar collectors at the time they are built (which is just a single turn)
is there some callin that I can use for this?
question
Moderators: MR.D, Moderators
Re: question
There is a widget in CA that turns your building to face the map center at game start. Perhaps take a look at that?
- Pressure Line
- Posts: 2283
- Joined: 21 May 2007, 02:09
Re: question
angle them how? If you just want to add some variation just use cob. get a randomnumber between 0 and 359,then do a "turn base around y-axis <1> * randomnumber now;" in Create().
Re: question
put the turn call in the oncreate() function with a speed of now.