Camera follows target - allfoxwy/UnitXP_SP3 GitHub Wiki

Camera following NPC

  • /script message(tostring(UnitXP("cameraFollowTarget","enable")));
  • /script message(tostring(UnitXP("cameraFollowTarget","disable")));
  • /script message(tostring(UnitXP("cameraFollowTarget","get")));

When this switch is enabled, camera would point at selected target instead of player. With following restrictions:

  • Not for PvP.
  • The player character needs to be able to see the target.
  • Within 50yd.