Class MobilePersonNPC
This contains the actual NPC data for mobile NPCs.
Inheritance
MobilePersonNPC
Assembly: Assembly-CSharp.dll
Syntax
public class MobilePersonNPC : MonoBehaviour
Fields
|
Improve this Doc
View Source
genderToBeSet
Declaration
public Genders genderToBeSet
Field Value
|
Improve this Doc
View Source
outfitVariantToBeSet
Declaration
[Range(-1F, 4F)]
public int outfitVariantToBeSet
Field Value
|
Improve this Doc
View Source
raceToBeSet
Declaration
Field Value
Properties
|
Improve this Doc
View Source
Asset
Billboard or custom asset for npc.
Declaration
public MobilePersonAsset Asset { get; }
Property Value
|
Improve this Doc
View Source
DisplayRace
Declaration
public MobilePersonNPC.DisplayRaces DisplayRace { get; }
Property Value
|
Improve this Doc
View Source
Gender
Declaration
public Genders Gender { get; }
Property Value
|
Improve this Doc
View Source
IsGuard
True if this npc is a city watch guard.
Declaration
public bool IsGuard { get; }
Property Value
|
Improve this Doc
View Source
Motor
Declaration
public MobilePersonMotor Motor { get; set; }
Property Value
|
Improve this Doc
View Source
NameNPC
Declaration
public string NameNPC { get; }
Property Value
|
Improve this Doc
View Source
PersonFaceRecordId
Declaration
public int PersonFaceRecordId { get; }
Property Value
|
Improve this Doc
View Source
PersonOutfitVariant
Declaration
public int PersonOutfitVariant { get; }
Property Value
|
Improve this Doc
View Source
PickpocketByPlayerAttempted
Declaration
public bool PickpocketByPlayerAttempted { get; set; }
Property Value
|
Improve this Doc
View Source
Race
Declaration
public Races Race { get; }
Property Value
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<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)