Library npc
NPC library for altering NPC behaviour.
Functions
Fields
| WEAPON_PROFICIENCY_POOR |
Poor weapon proficiency (i.e. will miss most of the time). |
| WEAPON_PROFICIENCY_AVERAGE |
Average weapon proficiency (i.e. will miss roughly half the time). |
| WEAPON_PROFICIENCY_GOOD |
Good weapon proficiency (i.e. will sometimes miss). |
| WEAPON_PROFICIENCY_VERY_GOOD |
Very good weapon proficiency (i.e. will rarely miss). |
| WEAPON_PROFICIENCY_PERFECT |
Perfect weapon proficiency (i.e. will almost never miss). |
| D_HT |
Represents a hate relationship (to be used with NPC:setRelationship()). |
| D_FR |
Represents a fear relationship (to be used with NPC:setRelationship()). |
| D_LI |
Represents a like relationship (to be used with NPC:setRelationship()). |
| D_NU |
Represents a neutral relationship (to be used with NPC:setRelationship()). |
Functions
- npc.getUsableWeaponClassNames()
-
Returns a list of weapon class names that can be given to an NPC.
Note that this does not check if the instance owner has permission to use each class, thus giving a class returned here may fail.
Environment:
Server