Does /18_CharacterDemo work?
I’ve used the following from the Character sample and it works and lets me enable/disable shadows:
-- Create the rendering component + animation controller
local object = adjNode:CreateComponent("AnimatedModel")
object.model = cache:GetResource("Model", "Models/Mutant/Mutant.mdl")
object.material = cache:GetResource("Material", "Models/Mutant/Materials/mutant_M.xml")
object.castShadows = true
adjNode:CreateComponent("AnimationController")
I’ve also done object.castShadows with other things. I’m not having issues with animated models.