Pryzmm Posted October 11, 2020 Share Posted October 11, 2020 (edited) 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 October 12, 2020 by Agentgamer100YT Changed skript (still dosent work) so that its not embarrasing Owner of Lifestealed, Labs, Encore, UNOfficially and Observed 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 - 5/8/2024 [MOD] 5/8/2024 - Present Link to comment Share on other sites More sharing options...
_Tarna_ Posted October 12, 2020 Share Posted October 12, 2020 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 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Pryzmm Posted October 12, 2020 Author Share Posted October 12, 2020 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? Owner of Lifestealed, Labs, Encore, UNOfficially and Observed 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 - 5/8/2024 [MOD] 5/8/2024 - Present Link to comment Share on other sites More sharing options...
_Tarna_ Posted October 12, 2020 Share Posted October 12, 2020 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 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Pryzmm Posted October 12, 2020 Author Share Posted October 12, 2020 (edited) 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 October 12, 2020 by Agentgamer100YT Owner of Lifestealed, Labs, Encore, UNOfficially and Observed 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 - 5/8/2024 [MOD] 5/8/2024 - Present Link to comment Share on other sites More sharing options...
_Tarna_ Posted October 12, 2020 Share Posted October 12, 2020 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. 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 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Pryzmm Posted October 12, 2020 Author Share Posted October 12, 2020 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). Owner of Lifestealed, Labs, Encore, UNOfficially and Observed 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 - 5/8/2024 [MOD] 5/8/2024 - Present Link to comment Share on other sites More sharing options...
_Tarna_ Posted October 12, 2020 Share Posted October 12, 2020 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 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now