Announcement

Collapse
No announcement yet.

Help! Scripting doubt...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help! Scripting doubt...

    Hi!

    I would like to know how can I rotate a given actor (more precisely a piece of decoration) in-game via scripts...

    What I am doing now... and doesn't work is something like:

    TStone.SetRotation(rot(3000, 0, 0));

    Any help? Please?

    Thx in advance!

    (Btw.... I don't know what I was doing wrong with the ThDoors in the other thread... but somehow it all worked later. Thx for the help!)
    "Nosce te ipsum et quies cortuum assequeris"

  • #2
    My previous miscomprehension:
    I've never done any work with rotation (yet) but I suspect that you need to change a state/variable somewhere to define that it is actually rotating.

    Ie. changing the brightness of a light source won't make a difference if the LightType = LT_None


    OK, so you just want something rotated at a specific angle?

    Well, I'm still no expert but you could always try messing with the following properties (under Movement):
    bFixedRotationDir
    &
    DesiredRotation

    & under Advanced properties, bStatic & bStasis should be false (I think)

    Comment


    • #3
      Dan is right... The bstatic and bnodelete options must be false. (I think)
      It's not my fault everything you like is terrible.

      Comment


      • #4
        Oh yeah, I forgot about bNoDelete (I think)

        Comment


        • #5
          YES YES!!!

          Thank you! Thank you!

          It works.
          I changed the following properties to false:
          bStasis
          &
          bStatic

          (bNodelete was already false)

          Thx! I can continue working on the map!
          "Nosce te ipsum et quies cortuum assequeris"

          Comment


          • #6

            Comment

            Working...
            X