Skip to content

nut.playerInteract

Base library for the player interaction menu library.

Hehehahahoo.

Functions

nut.playerInteract.addFunc (name, data)
nut.playerInteract.addFunc

Adds a new player interaction button to the interaction system.

Parameters:

string name Unique identifier for the interaction

table data Configuration table for the interaction

Usage:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    nut.playerInteract.addFunc("recognize", {
        nameLocalized = "recognize",
        callback = function(target)
            netstream.Start("rgnDirect", target)
        end,
        canSee = function(target)
            return true
        end
    })
    

nut.playerInteract.interact (entity, time)
nut.playerInteract.interact

Internal

This is used internally - although you're able to use it you probably shouldn't.

Initiates interaction with a player entity.

Parameters:

Entity entity The player entity to interact with

number time Duration of the interaction animation

nut.playerInteract.clear ()
nut.playerInteract.clear

Internal

This is used internally - although you're able to use it you probably shouldn't.

Clears the current player interaction.