lua/wrappers/game/lua_item.cpp
/**
     * Sets the interact with function. This can be used to override the 
     * default interaction behaviour. If this function does not specify that
     * it the game object was interacted with, then the default behaviour is
     * executed.
     *
     * @param function func The new interact with functionality.
     * @returns am.item This
     */
Sets the interact with function. This can be used to override the
default interaction behaviour. If this function does not specify that
it the game object was interacted with, then the default behaviour is
executed.

@param function func The new interact with functionality.
Sets the interact with function . This can be used to override the default interaction behaviour . If this function does not specify that it the game object was interacted with then the default behaviour is executed . @param function func The new interact with functionality .
int Item_interact_with(lua_State *lua)
    {
        Item *obj = castUData<Item>(lua, 1);
        if (obj)
        {
            return GameObject_interact_with(lua, obj);
        }
        return LuaState::expectedContext(lua, "interact_with", "am.item");
    }
int Item_interact_with ( lua_State * lua ) { Item * obj = castUData < Item > ( lua , 1 ) ; if ( obj ) { return GameObject_interact_with ( lua , obj ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Sets the interact with function.
Sets the interact with function .