Dismiss Notice
Wynncraft, the Minecraft MMORPG. Play it now on your Minecraft client at (IP): play.wynncraft.com. No mods required! Click here for more info...
Dismiss Notice
Have some great ideas for Wynncraft? Join the official CT (content team) and help us make quests, builds, cinematics and much more!

Game Mechanics Fixing the player to an entity in cutsences

Discussion in 'General Suggestions' started by Riesenpilz, Jun 12, 2022.

Thread Status:
Not open for further replies.
  1. Riesenpilz

    Riesenpilz Well-Known Adventurer VIP

    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    45
    Guild:
    Minecraft:
    Instead of TPing the player in cutscenes, you can fix the camera to an entity e. g an invisible armorstand, and move that instead. You can do that with the packet PacketPlayOutCamera.
    (protocol wiki:
    "Sets the entity that the player renders from. This is normally used when the player left-clicks an entity while in spectator mode.

    The player's camera will move with the entity and look where it is looking. The entity is often another player, but can be any type of entity. The player is unable to move this entity (move packets will act as if they are coming from the other entity).

    If the given entity is not loaded by the player, this packet is ignored. To return control to the player, send this packet with their entity ID.

    The Notchian server resets this (sends it back to the default entity) whenever the spectated entity is killed or the player sneaks, but only if they were spectating an entity. It also sends this packet whenever the player switches out of spectator mode (even if they weren't spectating an entity).")
     
  2. Daktota

    Daktota Daktota The Rock Enthusiast HERO

    Messages:
    333
    Likes Received:
    935
    Trophy Points:
    89
    Guild:
    Minecraft:
    Pretty sure this is already done in some cases, for camera movements. But like you arent forces to move so just dont press anything and itll be fine
     
Thread Status:
Not open for further replies.