RustTip

OnNpcConversationResponded

OxideCarbonNPC

Called when an npc conversation is responded.

void OnNpcConversationResponded(NPCTalking nPCTalking, BasePlayer local0, ConversationData local6, ConversationData.ResponseNode local20)
Works — the game method in this build is the one the hook was written for.

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)

Passes: NPCTalking nPCTalking, BasePlayer local0, ConversationData local6, ConversationData.ResponseNode local20

WorksReturnBehavior: 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.