Property | Type | Description | |
---|---|---|---|
Ammo | int | ||
AnimRange | int | ||
CalcFacingForDebug | int | ||
CurrentAnim | string | ||
Frozen | bool | ||
FrozenUpdate | short | ||
MagicAttack | bool | ||
NPCStatusEffects | SpellEffect[] | ||
NPC_DEAD | bool | ||
NPC_ID | string | ||
NPC_Launcher | GameObject | ||
NavMeshRegion | string | ||
Poisoned | bool | ||
SpellIndex | int | ||
adj | float | ||
anim | Animator | ||
currentState | int | ||
gtarg | GameObject | ||
gtargName | string | ||
isUndead | bool | ||
npc_arms | int | ||
npc_attitude | int | ||
npc_goal | int | ||
npc_gtarg | int | ||
npc_health | int | ||
npc_hp | int | ||
npc_hunger | int | ||
npc_level | int | ||
npc_name | int | ||
npc_power | int | ||
npc_talkedto | int | ||
npc_whoami | int | ||
npc_xhome | int | ||
npc_yhome | int | ||
state | int | ||
testforce | float |
Method | Description | |
---|---|---|
AI_INIT ( ) : void | ||
ApplyAttack ( int damage ) : bool |
Applies the attack to the NPC
|
|
ApplyAttack ( int damage, GameObject source ) : bool |
Applies the attack from a known source
|
|
Awake ( ) : void | ||
ContextMenuDesc ( int item_id ) : string | ||
ContextMenuUsedDesc ( ) : string | ||
ExecuteAttack ( ) : void |
NPC tries to hit the player.
|
|
ExecuteMagicAttack ( ) : void |
NPC casts a spell.
|
|
ExecuteRangedAttack ( ) : void |
Executes the ranged attack.
|
|
GetImpactPoint ( ) : Vector3 | ||
LookAt ( ) : bool |
Looks at the NPC
|
|
OnDeath ( ) : void |
Raises the death events for the player.
|
|
TalkTo ( ) : bool |
Begins a conversation if possible
|
|
UpdateSprite ( ) : void |
Updates the appearance of the NPC
|
|
UseVerb ( ) : string | ||
playAnimation ( string pAnim, int newState ) : void |
Checks if a new animation is needed and if so run it.
|
Method | Description | |
---|---|---|
NPCMoodDesc ( ) : string |
Gives a mood string for NPCs
|
|
facing ( float angle ) : int |
Breaks down the angle in the the facing sector. Clockwise from 0)
|
public ApplyAttack ( int damage, GameObject source ) : bool | ||
damage | int | Damage. |
source | GameObject | Source. |
return | bool |
public ContextMenuDesc ( int item_id ) : string | ||
item_id | int | |
return | string |
public playAnimation ( string pAnim, int newState ) : void | ||
pAnim | string | P animation. |
newState | int | New state. |
return | void |