NPC (22)
All currently available hooks that are found in Carbon. Most hooks would be ones compatible with Oxide, although there are Carbon-only ones as well.
CanDeployScientists
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches BradleyAPC.CanDeployScientists of Assembly-CSharp.dll.
CanNpcEat
Called when a NPC attempts to eat another entity.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BaseNpc.WantsToEat of Assembly-CSharp.dll.
OnAIBrainStateSwitch
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches BaseAIBrain.SwitchToState of Assembly-CSharp.dll.
OnAIBrainStateSwitched
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches BaseAIBrain.SwitchToState of Assembly-CSharp.dll.
This hook requires OnAIBrainStateSwitch, which loads alongside OnAIBrainStateSwitched.
Called when an NPC player corpse is about to be populated with loot.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches NPCPlayer.CreateCorpse of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ScientistNPC.Alert of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches BaseNpc.StartAttack of Assembly-CSharp.dll.
Called right after a player has ended an NPC conversation.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches NPCTalking.OnConversationEnded of Assembly-CSharp.dll.
Called when a player chooses an NPC conversation response.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches NPCTalking.Server_ResponsePressed of Assembly-CSharp.dll.
Called right after a player's chosen NPC conversation response has been processed.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches NPCTalking.Server_ResponsePressed of Assembly-CSharp.dll.
This hook requires OnNpcConversationRespond, which loads alongside OnNpcConversationResponded.
Called when a player tries to start a conversation with an NPC.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches NPCTalking.Server_BeginTalking of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches HumanNPC.SetDucked of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ScientistNPC.EquipWeapon of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches NPCPlayer.EquipWeapon of Assembly-CSharp.dll.
Called before a non-player controlled vending machine (at outpost etc.) gives the player the item they purchased.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches NPCVendingMachine.GiveSoldItem of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches ScientistNPC.PlayRadioChatter of Assembly-CSharp.dll.
Called when an NPC targets another entity.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches HumanNPC.GetBestTarget of Assembly-CSharp.dll.
Called when an NPC targets another entity.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches AIBrainSenses.GetNearest of Assembly-CSharp.dll.
Called when an NPC becomes aware of another entity.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches SimpleAIMemory.SetKnown of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches BradleyAPC.InitScientist of Assembly-CSharp.dll.
Returning a non-null value cancels default behavior.
This hook is Carbon-only compatible.
Patches BradleyAPC.OnScientistMounted of Assembly-CSharp.dll.
Last updated