Noverwyn Documentation
API set:
148

‹ All natives

Namespace: PLAYER API set: server Language: Luau Improve

player:prefer

player:prefer(other: Entity, meters: number)

Gives another entity a head start when choosing who is visible.

Useful for a group, a duel or friends in a crowd of more than 128 people. It only works one way: a:prefer(b, 30) changes nothing for b.

Parameters#

  • other (Entity): the player or object to keep visible
  • meters (number): metres taken off its distance, from 0 to 1000. 0 cancels

Example#

-- Both duellists always see each other first
a:prefer(b, 50)
b:prefer(a, 50)

Notes#

  • At most 64 preferences per player.
  • Does not make visible someone in another bucket or too far away.

See also#

Namespace: PLAYER

Namespace: ENTITY

Namespace: ZONE

Namespace: TIME

Namespace: SCRIPT

Namespace: EVENT

Namespace: CLIENT

Namespace: CLIENT EVENT

Namespace: UNIFORM

Namespace: WAND

Namespace: LOOK

Namespace: CONTROL

Namespace: GAIT

Namespace: VOICE

Namespace: ATELIER

Namespace: TOOL