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 community!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
command /test:
trigger:
set {_Loc1} to location of player
wait 10 seconds
set {_Loc2} to location of player
diference between x coordinate of {_loc1} and {_loc2} > 10:
send "HALT, you stepped too far"
distance between {_loc1} and {_loc2}I want to get the difference between locations
[doublepost=1525183605,1525183500][/doublepost]Can I use angle?
what do you mean by angle?I want to get the difference between locations
[doublepost=1525183605,1525183500][/doublepost]Can I use angle?
A location is not a vector, it is similar but it isn't a vector.I want to get the difference between locations
[doublepost=1525183605,1525183500][/doublepost]Can I use angle?
command /directionaltest:
trigger:
set {_y} to "%player's yaw%"
set {_p} to "%player's pitch%"
broadcast "%player% Is looking towards %{_y}% and %{_p}%"
if player's yaw is greater than 135:
if player's yaw is less than 225:
broadcast "Wow, %player%, look at that beautiful sunset! Almost as beautiful as you ;)"
#I understand the sun doesn't set in the North
#Also you this is just an example