
Originally Posted by
moggie100
but I still can't get the function to modify wire I/O working.
Code:
function ENT:ConfigInPuts(value)
if ( value == 1 ) then
self.Inputs = Wire_CreateInputs(self, { "A" , "HideHud", "ScreenX", "ScreenY", "Alpha", } )
elseif ( value == 2 ) then
self.Inputs = Wire_CrateInputs(self, { "A" , "HideHud", "X", "Y", "Z", "Alpha", } )
end
end
then call that function in the tool as you spawn the ent with the value you want to use.
Code:
wire_adv_indicator:Spawn()
wire_adv_indicator:ConfigInPuts(value)
If that helps any.
Bookmarks