Solved Player/Console creating location

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

  • LOOKING FOR A VERSION OF SKRIPT?

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

Status
Not open for further replies.
G

Goetheus

Hi guys!

I would like to create a location variable with 2 executables : player and console.

code_language.skript:
command /loc <number> <number> <number>:
    executable by: player, console
    trigger:
        set {_loc} to the location at arg-1, arg-2, arg-3
        broadcast "%{_loc}%"
If I perform this command in game, the variable {_loc} is correctly created. But when I perform this command in the console, the variable {_loc} is <none>

An idea why I have this problem?

Thank you!
 
Hi guys!

I would like to create a location variable with 2 executables : player and console.

code_language.skript:
command /loc <number> <number> <number>:
    executable by: player, console
    trigger:
        set {_loc} to the location at arg-1, arg-2, arg-3
        broadcast "%{_loc}%"
If I perform this command in game, the variable {_loc} is correctly created. But when I perform this command in the console, the variable {_loc} is <none>

An idea why I have this problem?

Thank you!
Try using the default function 'location' :
code_language.skript:
location(arg 1, arg 2, arg 3, world("your_world"))
 
  • Like
Reactions: Goetheus
Status
Not open for further replies.