All pastes #397825 Raw Edit

Mine

public text v1 · immutable
·published 2007-03-16 20:20 UTC
rendered paste body
require("modelinfo")
Msg("DLL Loaded successfully!\n")

PrintTable(modelinfo)

local mdl = modelinfo.LoadModel("models/alyx.mdl")

if (mdl) then
	Msg("Model:" .. tostring(mdl) .. "\n")

	Msg("Listing Attachments:\n")
	PrintTable( mdl:GetAttachments() or {} )

	Msg("Listing Bones:\n")
	PrintTable( mdl:GetBones() or {} )

	Msg("Listing Sequences:\n")
	PrintTable( mdl:GetAllSequences() or {} )
	
	mdl:Destroy()
end