Setting a Variable to Location Arbitrarily

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

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

ChedRed

Member
Dec 19, 2025
2
0
1
I want to set a variable to a location, but I keep getting an error saying it does not recognize the type.
For example:

Code:
{spawns::1} = location(12, 34, 56)

This fails and returns the error `can't understand the value 'location(12, 34, 56)'` and I have no idea why.
Official documentation has not helped either, since none of it seems to have solutions to my issue.
For example, in the docs:

Code:
set {home::%uuid of player%} to location of the player
 
Code:
set {_loc} to location(0,100,0, world "world", 90, 0)
yaw and pitch are optional i think, it could require world tho?
 
It gives the error "Can't understand the structure" :emoji_frowning:
I tried with and without the optional params and it gives the same error