Hello!
New to both PayDay 2 and haven't had alot of experience with LUA.
I tried making all interactable regardless of distance etc. first, like so:
This is what I have so far, but it does not pick anything up.
No errors are given either.
Any ideas, or reasons why this would not work?
Thanks! :)
New to both PayDay 2 and haven't had alot of experience with LUA.
I tried making all interactable regardless of distance etc. first, like so:
Code:
function BaseInteractionExt:can_interact(player) return true end
function BaseInteractionExt:interact_distance() return 1000000 endCode:
for _,v in pairs(managers.interaction._interactive_objects) do
if v.interaction then
if string.sub(v:interaction().tweak_data, -7) == "_pickup" then
v:interact(managers.player:local_player())
end
end
endNo errors are given either.
Any ideas, or reasons why this would not work?
Thanks! :)
Aucun commentaire:
Enregistrer un commentaire