Skip to content

Class: Monster ​

csharp
public class Monster : Entity, ILogicUpdate, ICleanup, ICustomDestroyRoutine

Fields ​

NameDeclarationDescription
chasePredictiveness`[BoxGroup("Monster Settings", true, false, 0)]
public float chasePredictiveness`
chaseRandomness`[BoxGroup("Monster Settings", true, false, 0)]
public float chaseRandomness`
disableLoot`[NonSerialized]
public bool disableLoot`
type`[BoxGroup("Monster Settings", true, false, 0)]
public Monster.MonsterType type`

Properties ​

NameDeclarationDescription
campPosition`[SaveVar(SaveVarFlags.Default)]
public Vector3? campPosition { get; }`Available on server.
defaultOwnerprotected override DewPlayer defaultOwner { get; }
isHunterpublic bool isHunter { get; set; }
populationCostpublic float populationCost { get; set; }
spawnPosOverridepublic virtual Vector3? spawnPosOverride { get; }Override spawn position for this monster. This has higher priority than all other spawn pos overrides.
spawnRotOverridepublic virtual Quaternion? spawnRotOverride { get; }Override spawn rotation for this monster. This has higher priority than all other spawn rot overrides.

Methods ​

AIUpdate(ref EntityAIContext) ​

csharp
protected override void AIUpdate(ref EntityAIContext context)

Parameters:

NameTypeDescription
contextEntityAIContext

GetStaggerSettings() ​

csharp
protected override Entity.StaggerSettings GetStaggerSettings()

Returns: Entity.StaggerSettings

OnCreate() ​

csharp
protected override void OnCreate()

OnDestroyActor() ​

csharp
protected override void OnDestroyActor()

OnStartServer() ​

csharp
public override void OnStartServer()

Maintained by the Shape of Dreams Modding Community