OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Class UnturnedZombie

Inheritance
System.Object
UnturnedZombie
Implements
IEntity
IGameObject
IHasHealth
IDamageSource
Namespace: OpenMod.Unturned.Zombies
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedZombie : object, IEntity, IGameObject, IHasHealth, IDamageSource

Constructors

| Improve this Doc View Source

UnturnedZombie(Zombie)

Declaration
public UnturnedZombie(Zombie zombie)
Parameters
Type Name Description
Zombie zombie

Properties

| Improve this Doc View Source

Asset

Declaration
public IEntityAsset Asset { get; }
Property Value
Type Description
IEntityAsset
| Improve this Doc View Source

DamageSourceName

Declaration
public string DamageSourceName { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

EntityInstanceId

Declaration
public string EntityInstanceId { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Health

Declaration
public double Health { get; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

IsAlive

Declaration
public bool IsAlive { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

MaxHealth

Declaration
public double MaxHealth { get; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

State

Declaration
public IEntityState State { get; }
Property Value
Type Description
IEntityState
| Improve this Doc View Source

Transform

Declaration
public IWorldTransform Transform { get; }
Property Value
Type Description
IWorldTransform
| Improve this Doc View Source

Zombie

Declaration
public Zombie Zombie { get; }
Property Value
Type Description
Zombie

Methods

| Improve this Doc View Source

DamageAsync(Double)

Declaration
public Task DamageAsync(double amount)
Parameters
Type Name Description
System.Double amount
Returns
Type Description
Task
| Improve this Doc View Source

KillAsync()

Declaration
public Task KillAsync()
Returns
Type Description
Task
| Improve this Doc View Source

SetFullHealthAsync()

Declaration
public Task SetFullHealthAsync()
Returns
Type Description
Task
| Improve this Doc View Source

SetHealthAsync(Double)

Declaration
public Task SetHealthAsync(double health)
Parameters
Type Name Description
System.Double health
Returns
Type Description
Task
| Improve this Doc View Source

SetPositionAsync(Vector3)

Declaration
public Task<bool> SetPositionAsync(Vector3 position)
Parameters
Type Name Description
Vector3 position
Returns
Type Description
Task<System.Boolean>
| Improve this Doc View Source

SetPositionAsync(Vector3, Quaternion)

Declaration
public Task<bool> SetPositionAsync(Vector3 position, Quaternion rotation)
Parameters
Type Name Description
Vector3 position
Quaternion rotation
Returns
Type Description
Task<System.Boolean>

Implements

IEntity
IGameObject
IHasHealth
IDamageSource

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)