Team Spartan Cookies & Milk Forums
Bone functions - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: Bone functions (/thread-3311.html)



Bone functions - frdhog - 08-06-2020

Is it possible to have any of the following bone functions?
  • Getting bone position (Entity:GetBonePosition)
  • Parent hologram to bone (Entity:FollowBone)
  • Get bone index (and name to get the inverse
  • Setting the position of a bone (within a reasonable radius)
  • Get child bones and parent of a bone/entity

Despite the inefficency, I would essentially like to apply the animations of one ragdoll to another and feel these would be useful for other things


RE: Bone functions - Person8880 - 10-06-2020

I've added various getter methods for bone data on entities (including all those you've listed), and Entity:followBone() for entities and holograms which will all be available after the next restart. The bone positioning will require more work to make sure it's sanitised correctly which I don't have time for right now.


RE: Bone functions - frdhog - 10-06-2020

Thanks, I appreciate the functions (and the permissions library) Smile


RE: Bone functions - Person8880 - 13-06-2020

I've now added methods to alter bone positions (clamped within the entity's bounding radius), angles and jiggle state to holograms which will be available after the next restart.