Actor Class |
Namespace: SampSharp.GameMode.World
public class Actor : IdentifiedPool<Actor>, IWorldObject
The Actor type exposes the following members.
| Name | Description | |
|---|---|---|
| FacingAngle |
Gets the facing angle of this Actor.
| |
| Health |
Gets the health of this Actor.
| |
| Id |
Gets the identifier of this instance.
(Inherited from IdentifiedPoolTInstance.) | |
| IsDisposed |
Gets whether this resource has been disposed.
(Inherited from Disposable.) | |
| IsInvulnerable |
Gets or sets a value indicating whether this Actor is invulnerable.
| |
| IsValid |
Gets a value indicating whether this Actor is valid.
| |
| PoolSize |
Gets the size of the actors pool.
| |
| Position |
Gets the position of this Actor.
| |
| VirtualWorld |
Gets or sets the virtual world of this Actor.
|
| Name | Description | |
|---|---|---|
| ApplyAnimation |
Applies the specified animation to this Actor.
| |
| AssertNotDisposed |
Checks whether this instance has been disposed. If it has, it throws an exception.
(Inherited from Disposable.) | |
| ClearAnimations |
Clear any animations applied to this Actor.
| |
| Create |
Creates a new Actor.
| |
| Dispose |
Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Disposable.) | |
| Dispose(Boolean) |
Removes this instance from the pool.
(Overrides IdentifiedPoolTInstanceDispose(Boolean).) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize |
Finalizes an instance of the Disposable class.
(Inherited from Disposable.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Initialize |
An overloadable point for initialization logic which requires the Id to be set.
(Inherited from IdentifiedPoolTInstance.) | |
| IsStreamedIn |
Determines whether this Actor is streamed in for the specified player.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| OnPlayerGiveDamage |
Raises the [E:PlayerGiveDamage] event.
| |
| OnStreamIn |
Raises the [E:StreamIn] event.
| |
| OnStreamOut |
Raises the [E:StreamOut] event.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| Disposed |
Occurs when this isntance has been disposed.
(Inherited from Disposable.) | |
| PlayerGiveDamage |
Occurs when a player harms this Actor.
| |
| StreamIn |
Occurs when this Actor is being streamed in for a player.
| |
| StreamOut |
Occurs when this Actor is being streamed out for a player.
|
| Name | Description | |
|---|---|---|
| InvalidId |
Identifier indicating the handle is invalid.
| |
| Max |
Maximum number of actors which can exist.
|