RustTip

OnNpcConversationResponded

OxideCarbonNPC

Called when an npc conversation is responded.

void OnNpcConversationResponded(NPCTalking nPCTalking, BasePlayer local0, ConversationData local6, ConversationData.ResponseNode local20)
Method missing — this game build has no method the hook is injected into: until it is updated, the hook is not called.

Parameters

nPCTalking
NPCTalking
local0
BasePlayer
local6
ConversationData
local20
ConversationData.ResponseNode

Return value

voidThe return value is ignored — the hook only notifies.

Example

private void OnNpcConversationResponded(NPCTalking nPCTalking, BasePlayer local0, ConversationData local6, ConversationData.ResponseNode local20)
{
    Puts("OnNpcConversationResponded");
}

Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.

Injection point

Rust.opj (Oxide)
void NPCTalking.Server_ResponsePressed(BaseEntity.RPCMessage)
Method missingReturnBehavior: ContinueArgumentBehavior: UseArgumentString (this, l0, l6, l20)Assembly-CSharp.dll

Sources: Rust.opj from OxideMod/Oxide.Rust (MIT) and hook metadata of the Carbon documentation (MIT). Method code is decompiled from this branch's server.