Solved Change Y-coordinate in variable

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

Wolwer

Active Member
Feb 8, 2018
53
5
8
Hi.
I need help.
I need to lock Y-coordinate of variable
Smth like this:
Code:
set {_behloc} to location 2 behind player
set {_above} to location 1.5 above player
set {_loc} to {_behloc} with Y-coordinates of {_above}

How to do it?
Please, help <3
 
could be
Code:
set {_loc} to 2 blocks behind the player
set {_loc} to 1.5 blocks above player

Error.
Code:
[Server thread/ERROR]: Can't understand this expression: '2 blocks behind the player' (npc.sk, line 23: set {_loc} to 2 blocks behind the player')
[Server thread/ERROR]: Can't understand this expression: '1.5 blocks above player' (npc.sk, line 24: set {_loc} to 1.5 blocks above player')


When i removed "blocks" from your code there were another error:
Code:
Variables cannot be used here.
 
Status
Not open for further replies.