question

question

Share and discuss visual creations and creation practices like texturing, modelling and musing on the meaning of life.

Moderators: MR.D, Moderators

Post Reply
User avatar
bartvbl
Posts: 346
Joined: 21 Mar 2009, 15:55

question

Post by bartvbl »

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?
User avatar
MidKnight
Posts: 2652
Joined: 10 Sep 2008, 03:11

Re: question

Post by MidKnight »

There is a widget in CA that turns your building to face the map center at game start. Perhaps take a look at that?
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Re: question

Post by Pressure Line »

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().
User avatar
maackey
Posts: 490
Joined: 02 Jul 2008, 07:11

Re: question

Post by maackey »

put the turn call in the oncreate() function with a speed of now.
User avatar
bartvbl
Posts: 346
Joined: 21 Mar 2009, 15:55

Re: question

Post by bartvbl »

that should do. :-)
thanks!
Knipsel.JPG
(213.91 KiB) Downloaded 2 times
Post Reply

Return to “Art & Modelling”