tipforeveryone Posted July 3, 2016 Posted July 3, 2016 I have a character with hand bone (name "right hand") and a gun npc.model = Model:Load("character.mdl") npc.hand = npc.model:FindChild("right hand") npc.weapon = Model:Load("weapon.mdl") npc.model:SetShadowMode(2) npc.weapon:SetShadowMode(2) There is a direction light can cast shadow on entities. If I use: npc.weapon:SetParent(npc.hand) then the shadow of the weapon disappears on the ground but shadow of character. If I don't use SetParent(npc.hand) for npc.weapon, both of shadow appear I tried npc.hand:SetShadowMode(2) combine with npc.weapon:SetParent(npc,hand) but weapon's shadow still disappear. How can I make weapon's shadow appear when it has parent entity ? Quote
tjheldna Posted July 4, 2016 Posted July 4, 2016 Think so, you need to make sure all the parents have the 'Dynamic' shadow set for it to check. Shadows will stop at a 'None' child and not check any of it's children after that. 1 Quote
tipforeveryone Posted July 5, 2016 Author Posted July 5, 2016 Yes, you are right. Thanks It works Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.