-- LUA Script - precede every function and global member with lowercase name of script + '_main' local U = require "scriptbank\\utillib" function fe_collect_init( e ) Include( "utillib.lua" ) end function fe_collect_main( e ) if fe_setPiece == nil then return end local Ent = g_Entity[ e ] if fe_gotPiece( Ent.health ) then Destroy( e ) end if U.PlayerLookingNear( e, 60, 80 ) then fe_setPiece( Ent.health ) Destroy( e ) end end