I'm a bit confused about these things, would appreciate some explanations:
1. Is the PhysicsBone member of [url=http://wiki.garrysmod.com/page/Structures/TraceResult]TraceResult[/url] the same as the argument I'd need to give [url=http://wiki.garrysmod.com/page/Entity/GetPhysicsObjectNum]Entity:GetPhysicsObjectNum[/url] in order to get the relevant PhysObj?
2. Can there be an entity that returns true for [url=http://wiki.garrysmod.com/page/Entity/IsRagdoll]Entity:IsRagdoll[/url] but has just 1 Physics Object? (that is, returns 1 for [url=http://wiki.garrysmod.com/page/Entity/GetPhysicsObjectCount]Entity:GetPhysicsObjectCount[/url])
3. Vice versa: can there be an entity that returns [i]false[/i] for IsRagdoll but has [i]more[/i] than 1 Physics Object?
4. How does [url=http://wiki.garrysmod.com/page/Entity/GetBoneCount]Entity:GetBoneCount[/url] relate to all this?
Thanks a lot!
Bump.. Is this something not many people use? Sounds like a pretty major thing to me.
1. Have you tried it?
2. Have you tried it? (Vehicles have multiple PhysObjs, I doubt they're ragdolls)
3. Vice versa
4. [lua]for i=1,ent:GetBoneCount() do
print(ent:GetBoneName(i))
end[/lua]
I'm pretty sure the definition of Entity:IsRagdoll() is props with the class of [url=https://developer.valvesoftware.com/wiki/Prop_ragdoll]prop_ragdoll[/url].
Bones are different from physics objects. They are like the little pieces of a model.
I hope that helps!
[QUOTE=Revenge282;47113299]1. Have you tried it?
2. Have you tried it? (Vehicles have multiple PhysObjs, I doubt they're ragdolls)
3. Vice versa
4. [lua]for i=1,ent:GetBoneCount() do
print(ent:GetBoneName(i))
end[/lua][/QUOTE]
1. Yes, but even if it works SOMETIMES it doesn't mean it works ALWAYS.
2/3. Thanks. I only checked with props and ragdolls, didn't even think of trying with vehicles.
[QUOTE=bobbleheadbob;47113354]I'm pretty sure the definition of Entity:IsRagdoll() is props with the class of [url=https://developer.valvesoftware.com/wiki/Prop_ragdoll]prop_ragdoll[/url].
Bones are different from physics objects. They are like the little pieces of a model.
I hope that helps![/QUOTE]
Thank you!
Sorry, you need to Log In to post a reply to this thread.