Change yaw, metadata

  • 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!

MrNygus

Active Member
Jan 28, 2017
116
2
18
26
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:
 
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
Reactions: MrNygus
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: ?
 
Last edited by a moderator:
@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_language.skript:
set metadata "%{_p}%car" of {_target} to true
code_language.skript:
set {_data} to metadata "%{_p}%car" of {_target}
{_data} should return true.
 
... 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}
[doublepost=1486325961,1485714917][/doublepost]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