how to set the camera of a player to another entity?

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

cookies

New Member
Aug 26, 2023
8
0
1
im trying set a player's camera to another entity. i searched on skhub and found this effect. it seems to be the solution for me, but i dont understand what packets are and how to use them.
here is my code:
command /fakecow:
permission: op
trigger:
spawn fake cow at player for all players with id 23
set camera of player to cow with id 23 for 3 seconds
Screenshot 2023-08-26 105250.png
 
command /fakecow:
permission: op
trigger:
spawn fake cow at player for all players with id 23
set camera play_server_camera of player to cow with id 23

it doesnt understand the event.
can you tell me what i am doing wrong?
 
command /fakecow:
permission: op
trigger:
spawn fake cow at player for all players with id 23
set camera play_server_camera of player to cow with id 23

it doesnt understand the event.
can you tell me what i am doing wrong?
Because you put the name of the packet instead of just putting “packet” or just nothing
 
whats the difference between nothing and packet?
also removing "play_server_camera" and replacing it with nothing/"packet" doesnt work, it still gives the same error.
 
whats the difference between nothing and packet?
also removing "play_server_camera" and replacing it with nothing/"packet" doesnt work, it still gives the same error.
Learn how to read the docs, anything between a [] is optional