Something like this:
where port is an input got through port = ent.Inputs[inputId] where ent is a valid wire entity and inputId is the index of an input
Code:if (port.Src) and (port.Src:IsValid()) then -- the input is hooked up else -- not wired end


LinkBack URL
About LinkBacks




Reply With Quote
, but I found that code in the WireLib file. It should work as long as the entity you use it on has the base type "base_wire_entity" 
Bookmarks