OnNpcConversationRespond
OxideCarbonNPCCalled when npc conversation respond occurs.
object OnNpcConversationRespond(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
objectReturn non-null to cancel the game action.
Example
object — you can affect the game: return a value to change or cancel the action.
private object OnNpcConversationRespond(NPCTalking nPCTalking, BasePlayer local0, ConversationData local6, ConversationData.ResponseNode local20)
{
Puts("OnNpcConversationRespond");
// change nothing — the game continues as usual
return null;
// to affect the game:
// return false; // non-null cancels the game action
}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: ExitWhenValidTypeArgumentBehavior: 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.