Interface IActor.IManagedInterface
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
animationAnimationDataThe 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
nullif 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
trueif the actor is invulnerable; otherwise,false.
IsStreamedInForPlayer(IPlayer)
Checks if the actor is streamed in for a specific player.
bool IsStreamedInForPlayer(IPlayer player)
Parameters
playerIPlayerThe player to check streaming status for.
Returns
- bool
trueif the actor is streamed in for the player; otherwise,false.
SetHealth(float)
Sets the actor's health.
void SetHealth(float health)
Parameters
healthfloatThe health value to set for the actor.
SetInvulnerable(bool)
Sets whether the actor is invulnerable.
void SetInvulnerable(bool invuln)
Parameters
invulnbooltrueto make the actor invulnerable; otherwise,false.
SetSkin(int)
Sets the actor's skin.
void SetSkin(int id)
Parameters
idintThe ID of the skin to set.
StreamInForPlayer(IPlayer)
Streams the actor in for a specific player.
void StreamInForPlayer(IPlayer player)
Parameters
playerIPlayerThe player for whom the actor should be streamed in.
StreamOutForPlayer(IPlayer)
Streams the actor out for a specific player.
void StreamOutForPlayer(IPlayer player)
Parameters
playerIPlayerThe player for whom the actor should be streamed out.