NPC - character functions
Npc_GetRoutineFuncName
Returns the function name of the NPC's current routine (e.g. RTN_PRESTART_100).
npc- NPCreturn- function name of the NPC's current routine
Npc_GetRoutineName
Returns the name of the NPC's current routine (e.g. PRESTART).
npc- NPCreturn- name of the NPC's current routine
Npc_EquipItem
Equips or unequips the specified item on the NPC.
npc- NPCitemInstance- instance name of the item
| Example usage | |
|---|---|
Npc_GetWalkMode
Returns the current walk mode of the NPC.
npc- NPCreturn- integer value of walk mode
Npc_IsStanding
Checks if the NPC is currently standing still.
npc- NPCreturn-TRUEif NPC is standing,FALSEotherwise
Npc_IsWalking
Checks if the NPC is currently walking.
npc- NPCreturn-TRUEif NPC is walking,FALSEotherwise
Npc_HasOverlay
Checks if the NPC has the specified animation overlay active.
npc- NPCreturn-TRUEif NPC has overlay with specified name,FALSEotherwise
Npc_HasTimedOverlay
Checks if the NPC has the specified timed animation overlay active.
npc- NPCreturn-TRUEif NPC has overlay with specified name,FALSEotherwise
Npc_OpenDeadNpcInventory
Opens NPC's plunder inventory.
npc- NPC
| Example usage | |
|---|---|
Npc_CloseInventory
Closes NPC's main inventory.
npc- NPC
| Example usage | |
|---|---|
Npc_CloseInventorySteal
Closes the steal inventory of npc's focus NPC.
npc- NPC
| Example usage | |
|---|---|
Npc_CloseDeadNpcInventory
Closes NPC's plunder inventory.
npc- NPC
| Example usage | |
|---|---|