1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SkBee's structure rotation reset

Discussion in 'Skript' started by Nikd0, Dec 29, 2022.

Tags:
Thread Status:
Not open for further replies.
  1. Nikd0

    Nikd0 Active Member

    Joined:
    May 30, 2020
    Messages:
    208
    Likes Received:
    21
    I need to get the default rotation of a SkBee structure, my code:

    Code (Text):
    1. on load:
    2.   set {_s} to structure named "str"
    3.   set {_l1} to location(-24,61,-285, world "world")
    4.   set {_l2} to location(-19,56,-269, world "world")
    5.   fill structure {_s} between {_l1} and {_l2}
    6.   save structure {_s}
    now, if I use it for the first time, it indeed provides me with the correct rotation, however, the next time, it remembers the rotation and doesn't use the first one

    Code (Text):
    1. on command "first":
    2.   set {_s} to structure named "str"
    3.   set rotation of structure {_s} to clockwise 90
    4.   place structure {_s} at target block of player #is rotated
    5.  
    6. on command "second":
    7.   set {_s} to structure named "str"
    8.   place structure {_s} at target block of player #is rotated too! (it shouldn't be)
    I've tried to `set rotation of structure {_s} to none` according to the docs but it doesn't work. Any idea why?
     

    Attached Files:

Thread Status:
Not open for further replies.

Share This Page

Loading...