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
-TRUE
if NPC is standing,FALSE
otherwise
Npc_IsWalking
Checks if the NPC is currently walking.
npc
- NPCreturn
-TRUE
if NPC is walking,FALSE
otherwise
Npc_HasOverlay
Checks if the NPC has the specified animation overlay active.
npc
- NPCreturn
-TRUE
if NPC has overlay with specified name,FALSE
otherwise
Npc_HasTimedOverlay
Checks if the NPC has the specified timed animation overlay active.
npc
- NPCreturn
-TRUE
if NPC has overlay with specified name,FALSE
otherwise
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 | |
---|---|