Jump to content

Compass Tracking


AgentGamerPro

Recommended Posts

This Post has been solved!

I'm making a manhunt skript and the only thing I have to work on is the compass. I want it to follow a specific person (changes every round) but I don't know how to do that.

every 3 seconds in world "manhunt":
    set the spawn point of "manhunt" to {MH.hunted} location

 

Edited by Agentgamer100YT
Changed skript (still dosent work) so that its not embarrasing

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

You can probably just use the compass target expression and point the compass to a certain person's location. 

https://skripthub.net/docs/?id=948

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

9 hours ago, Agentgamer100YT said:

that's good, but this "certain person" in going to be in a variable {MH.hunted} and will be changing a lot. How would i put something like this in a skript?

You could set the variable to the player. Then probably do {MH.hunted}'s location and point it to that. And when the variable is changed to a new person, it will point to them. 

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

2 hours ago, _Tarna_ said:

You could set the variable to the player. Then probably do {MH.hunted}'s location and point it to that. And when the variable is changed to a new person, it will point to them. 

What does it mean by "Variables can not be used here" or "There's no player in a periodical event"? (sorry i'm not that good at this kind of skripting) Here is my code:

every 3 seconds in world "manhunt":
    loop all players:
        set the loop player's compass target to location of {MH.hunted%player%}

 

Edited by Agentgamer100YT

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

1 minute ago, Agentgamer100YT said:

What does it mean by "Variables can not be used here"? (sorry i'm not that good at this kind of skripting) Here is my code:


every 3 seconds in world "manhunt":
    loop all players:
        set the loop player's compass target to location of {MH.hunted%player%}

 

You are using %player% in an every second and loop all players. There is no player in that event. You need to do %loop-player%. Then that variable will be for that certain loop-player. 

Also is that variable supposed to be a per person variable? Can't you just set that variable to a player and point it to that player. Like make a command that sets the variable to arg-1, which is player, and point it to that variable's location. 

  • Confused 1

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

1 minute ago, _Tarna_ said:

You are using %player% in an every second and loop all players. There is no player in that event. You need to do %loop-player%. Then that variable will be for that certain loop-player. 

Also is that variable supposed to be a per person variable? Can't you just set that variable to a player and point it to that player. Like make a command that sets the variable to arg-1, which is player, and point it to that variable's location. 

Thanks for helping me out and sticking around for one, and two I just can't figure this out. I don't want it to be a command since I want this to be as automatic as possible. I've never really used loop players and i've still got a lot to learn about skript. Sorry if im bothering you with this (if im not, im just socially awkward).

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

2 minutes ago, Agentgamer100YT said:

Thanks for helping me out and sticking around for one, and two I just can't figure this out. I don't want it to be a command since I want this to be as automatic as possible. I've never really used loop players and i've still got a lot to learn about skript. Sorry if im bothering you with this (if im not, im just socially awkward).

Np. Also its better to ask for skript help in #skript on the minehut discord. (discord.gg/minehut) Or you can also dm me on Discord if you wanted instead of going back and forth here. And communicating on discord is easier if you have it. Tarna256#8675 

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...