Skip to main content

Interface: UniHuman

A class representing flyff entity

Extends

Extended by

Methods

Click()

Click(): void

Returns

void

Inherited from

UniMover.Click


CompareName()

CompareName(name): boolean

Parameters

name: string

Returns

boolean

Inherited from

UniMover.CompareName


get()

get<T>(name): IFlyffHuman[T]

Accesss internal properties of the underlying IFlyffMover object.

Type Parameters

T extends "name" | keyof IFlyffEntity | "targetID" | "targeting" | "attacking" | "following" | "HP" | "isDead" | "isRedMob" | "animationState" | "actionState" | "flyingState" | "buffs" | "premiumItems" | "premiumItems2" | "movingTowards" | "isMasquerpet" | "isNPC" | "g" | "title" | "maxHP" | "maxMP" | "maxFP" | "castTimeReduction" | "FP" | "MP" | "baseStats" | "jobID" | "jobName" | "continent" | "isInSameParty" | "guildName" | "hasPrivateShopOpen"

Parameters

name: T

Returns

IFlyffHuman[T]

The value of the property on the internal IFlyffMover object. Returns undefined if the property does not exist.

Overrides

UniMover.get


GetAttackingEntity()

GetAttackingEntity<T>(): T

Type Parameters

T extends UniHuman | UniMover | UniPlayer

Returns

T

Inherited from

UniMover.GetAttackingEntity


GetCombatOrigin()

GetCombatOrigin(): IVector3

Returns

IVector3

Inherited from

UniMover.GetCombatOrigin


GetContinent()

GetContinent(): string

Returns

string

Inherited from

UniMover.GetContinent


GetCurrentHealth()

GetCurrentHealth(): number

Returns the current healthpoints of the mover.

Returns

number

Inherited from

UniMover.GetCurrentHealth


GetDistance()

GetDistance(is2D?): number

Parameters

is2D?: boolean

Returns

number

Inherited from

UniMover.GetDistance


GetDistanceTo()

GetDistanceTo(otherPos): number

Parameters

otherPos: IVector3

Returns

number

Inherited from

UniMover.GetDistanceTo


GetFollowingEntity()

GetFollowingEntity<T>(): T

Type Parameters

T extends UniHuman | UniMover | UniPlayer

Returns

T

Inherited from

UniMover.GetFollowingEntity


GetGamePropID()

GetGamePropID(): number

Returns

number

Inherited from

UniMover.GetGamePropID


GetID()

GetID(): number

Returns

number

Inherited from

UniMover.GetID


GetLevel()

GetLevel(): number

Returns

number

Overrides

UniMover.GetLevel


GetMaxHealth()

GetMaxHealth(): number

Returns the current maximum healthpoints of the mover.

Returns

number

Overrides

UniMover.GetMaxHealth


GetName()

GetName(): string

Returns

string

Inherited from

UniMover.GetName


GetPosition()

GetPosition(): IVector3

Returns

IVector3

Inherited from

UniMover.GetPosition


GetRank()

GetRank(): MonsterRank

Returns the rank of the mover. NOTE: Fallback to "normal" for any non masquerpets.

Returns

MonsterRank

Inherited from

UniMover.GetRank


GetRemainingTimeOfBuff()

GetRemainingTimeOfBuff(buffSkillName): number

Returns the remaining time in milliseconds that this buff will be active for, returns 0 for non active buffs.

Parameters

buffSkillName: string

Name of the buff you want the remaining active time for.

Returns

number

Inherited from

UniMover.GetRemainingTimeOfBuff


GetTargetedEntity()

GetTargetedEntity<T>(): T

Type Parameters

T extends UniHuman | UniMover | UniPlayer

Returns

T

Inherited from

UniMover.GetTargetedEntity


IsDead()

IsDead(): boolean

Returns

boolean

Inherited from

UniMover.IsDead


IsDespawned()

IsDespawned(): boolean

Returns true if the entity was not contained in a recent game state update. Data on this entity might be stale. Use .LastSeenAt() to check when the entity was last seen.

Returns

boolean

Inherited from

UniMover.IsDespawned


IsEventMonster()

IsEventMonster(): boolean

Returns

boolean

Inherited from

UniMover.IsEventMonster


IsFlying()

IsFlying(): boolean

Returns

boolean


IsGiant()

IsGiant(): boolean

Returns

boolean

Inherited from

UniMover.IsGiant


IsHuman()

IsHuman(): boolean

Returns true if this UniMover represents a player.

Returns

boolean

Inherited from

UniMover.IsHuman


IsInCombat()

IsInCombat(): boolean

Returns

boolean

Inherited from

UniMover.IsInCombat


IsMasquerpet()

IsMasquerpet(): boolean

Returns

boolean

Inherited from

UniMover.IsMasquerpet


IsNPC()

IsNPC(): boolean

Retruns true if the UniMover represents an NPC.

Returns

boolean

Inherited from

UniMover.IsNPC


IsObstructed()

IsObstructed(): boolean

Returns

boolean

Inherited from

UniMover.IsObstructed


IsOnScreen()

IsOnScreen(): boolean

Returns

boolean

Inherited from

UniMover.IsOnScreen


IsRedMob()

IsRedMob(): boolean

Returns

boolean

Inherited from

UniMover.IsRedMob


IsSittingDown()

IsSittingDown(): boolean

Returns true if the UniMover is currently sitting on ground.

Returns

boolean

Inherited from

UniMover.IsSittingDown


IsVendorShop()

IsVendorShop(): boolean

Returns

boolean

Inherited from

UniMover.IsVendorShop


On()

On(event, listener): void

Parameters

event: string

listener

Returns

void

Inherited from

UniMover.On


Timer()

Timer(timerName): number

Exposes the timers that the script runtime manages for this entity.

Parameters

timerName: keyof TUniEntity_Timers

Returns

number

Inherited from

UniMover.Timer