Show / Hide Table of Contents

Class MobilePersonNPC

This contains the actual NPC data for mobile NPCs.

Inheritance
Object
Object
Component
Behaviour
MonoBehaviour
MobilePersonNPC
Namespace: DaggerfallWorkshop.Game
Assembly: Assembly-CSharp.dll
Syntax
public class MobilePersonNPC : MonoBehaviour

Fields

| Improve this Doc View Source

genderToBeSet

Declaration
public Genders genderToBeSet
Field Value
Type Description
Genders
| Improve this Doc View Source

outfitVariantToBeSet

Declaration
[Range(-1F, 4F)]
public int outfitVariantToBeSet
Field Value
Type Description
Int32
| Improve this Doc View Source

raceToBeSet

Declaration
public Races raceToBeSet
Field Value
Type Description
Races

Properties

| Improve this Doc View Source

Asset

Billboard or custom asset for npc.

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

DisplayRace

Declaration
public MobilePersonNPC.DisplayRaces DisplayRace { get; }
Property Value
Type Description
MobilePersonNPC.DisplayRaces
| Improve this Doc View Source

Gender

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

IsGuard

True if this npc is a city watch guard.

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

Motor

Declaration
public MobilePersonMotor Motor { get; set; }
Property Value
Type Description
MobilePersonMotor
| Improve this Doc View Source

NameNPC

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

PersonFaceRecordId

Declaration
public int PersonFaceRecordId { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

PersonOutfitVariant

Declaration
public int PersonOutfitVariant { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

PickpocketByPlayerAttempted

Declaration
public bool PickpocketByPlayerAttempted { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Race

Declaration
public Races Race { get; }
Property Value
Type Description
Races

Methods

| Improve this Doc View Source

ApplyPersonSettingsViaInspector()

apply person settings via Unity Inspector through public fields raceToBeSet, genderToBeSet and outfitVariantToBeSet.

Declaration
public void ApplyPersonSettingsViaInspector()
| Improve this Doc View Source

RandomiseNPC(Races)

randomize NPC with current race - set current race before calling this function with property Race.

Declaration
public void RandomiseNPC(Races race)
Parameters
Type Name Description
Races race

Entity race of NPC in current location.

Extension Methods

MBExtensions.Invoke(MonoBehaviour, Action, Single)
MBExtensions.Invoke<T>(MonoBehaviour, Action<T>, T, Single)
MBExtensions.Invoke<T1, T2>(MonoBehaviour, Action<T1, T2>, T1, T2, Single)
MBExtensions.Invoke<T1, T2, T3>(MonoBehaviour, Action<T1, T2, T3>, T1, T2, T3, Single)
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX