1. Is there a way to tell which player is being spectated? For example on AdminRadar I can't seem to figure out how to hide the box of the spectated player
     
  2. Maybe it's possible to check with OnServerCommand and see if the entered name can be found?
     
  3. Wulf

    Wulf Community Admin

    You'd have to check for a child object I believe to see if a player is attached to them.
     
  4. looking by code, the spectating player is added to the spectated object as parent:
    Code:
    base.SetParent(baseEntity, 0u);
    and he has then this two Flags:
    Code:
    IsDeadIsSpectating
     
  5. But no real way to check for parents?
     
  6. Wulf

    Wulf Community Admin

    Well, if you want to check if a player has someone spectating them, you'd check for their children. If you want to check if someone is spectating someone, you can either check IsSpectating (or something like that) if set, else check for their parent like suggested previously.
     
  7. Ok Ill see if I can find that
     
  8. Thanks @Wulf I never thought of doing children. I was trying to use Parent. lol ;)