Table of Contents

Interface IActor.IManagedInterface

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Represents the managed interface implemented by its unmanaged counterpart.

public interface IActor.IManagedInterface : IUnmanagedInterface
Inherited Members

Methods

ApplyAnimation(AnimationData)

Applies an animation to the actor.

void ApplyAnimation(AnimationData animation)

Parameters

animation AnimationData

The animation data to apply to the actor.

ClearAnimations()

Clears all animations applied to the actor.

void ClearAnimations()

GetAnimation()

Gets the animation currently applied to the actor.

AnimationData? GetAnimation()

Returns

AnimationData

The animation data currently applied to the actor, or null if no animation is applied.

GetHealth()

Gets the actor's current health.

float GetHealth()

Returns

float

The current health of the actor.

GetSkin()

Gets the actor's skin ID.

int GetSkin()

Returns

int

The ID of the actor's skin.

GetSpawnData()

Gets the spawn data of the actor.

ref ActorSpawnData GetSpawnData()

Returns

ActorSpawnData

The spawn data of the actor, including position, facing angle, and skin.

IsInvulnerable()

Checks whether the actor is invulnerable.

bool IsInvulnerable()

Returns

bool

true if the actor is invulnerable; otherwise, false.

IsStreamedInForPlayer(IPlayer)

Checks if the actor is streamed in for a specific player.

bool IsStreamedInForPlayer(IPlayer player)

Parameters

player IPlayer

The player to check streaming status for.

Returns

bool

true if the actor is streamed in for the player; otherwise, false.

SetHealth(float)

Sets the actor's health.

void SetHealth(float health)

Parameters

health float

The health value to set for the actor.

SetInvulnerable(bool)

Sets whether the actor is invulnerable.

void SetInvulnerable(bool invuln)

Parameters

invuln bool

true to make the actor invulnerable; otherwise, false.

SetSkin(int)

Sets the actor's skin.

void SetSkin(int id)

Parameters

id int

The ID of the skin to set.

StreamInForPlayer(IPlayer)

Streams the actor in for a specific player.

void StreamInForPlayer(IPlayer player)

Parameters

player IPlayer

The player for whom the actor should be streamed in.

StreamOutForPlayer(IPlayer)

Streams the actor out for a specific player.

void StreamOutForPlayer(IPlayer player)

Parameters

player IPlayer

The player for whom the actor should be streamed out.