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!

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

Change yaw, metadata

Discussion in 'Addon Suggestions' started by MrNygus, Jan 28, 2017.

  1. MrNygus

    MrNygus Active Member

    Joined:
    Jan 28, 2017
    Messages:
    107
    Likes Received:
    1
    I used change yaw of armorstand, and metadata to found this armorstand used by vehicles. (randomsk)
    Can you add this to someone of addon? Or maybe can you send me alternatives?

    thanks :emoji_slight_smile:
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    just teleport the entity to the same location but different yaw and pitch for change the yaw and pitch or use QuarSK, it has an effect that does the same; use Skellett for the metadata stuff.
     
    • Like Like x 1
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    QuarSK:
    from:
    change yaw of {_target} to yaw of {_p}
    to:
    orient {_target} towards {_p}'s location

    (error) There's no entity in a function event
    set {_target} to last spawned entity
    orient {_target} towards {_p}'s location
    ______________

    Skellett has metadata? - works that same code, so... thanks xd
    from:
    set metadata "%{_p}%car" of {_target} to true
    to: ??

    from:
    loop all entities in radius 10 of {_p}:
    if metadata "%{_p}%car" of loop-entity is true:
    delete loop-entity
    stop

    to: ?
     
    #3 ShaneBee, Jan 28, 2017
    Last edited by a moderator: Jan 28, 2017
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    @MrNygus There are litterally like 6+ addons that implant yaw and pitch. Skript, Umbaska, SkQuery, QuerSk, GamebusterSk, Tortoise and more. It's ridiculous.

    As for the metadata here is an example for setting and getting.
    Code (Skript):
    1. set metadata "%{_p}%car" of {_target} to true
    Code (Skript):
    1. set {_data} to metadata "%{_p}%car" of {_target}
    {_data} should return true.
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    ... thanks, metadata works perfectly.. but yaw doesn't work(no errors, but no effects)


    while vehicle of {_p} is {_target}:
    wait 4 ticks
    send "tt" to {_p}
    set {_lok1} to {_p}'s location
    set {_lok2} to {_target}'s location
    set {_yaw} to yaw of {_lok1}
    set yaw of {_lok2} to {_yaw}
    wait 1 tick
    teleport {_target} to {_lok2}
    --- Double Post Merged, Feb 5, 2017, Original Post Date: Jan 29, 2017 ---
    set {_target} to last spawned entity #armorstand
    set {_targblock} to location of {_p}'s target block
    orient {_target} towards {_targblock}

    Error: There's no entity in a function event
     

Share This Page

Loading...