• Problem with SetBodyGroups when a bodygroup has more than 9 groups
    2 replies, posted
I want to change all bodygroups of a (player)model with one single string but if I want to change the first bodygroup to 19 gmod thinks i want to change the first bodygroup to 1 and the second to 9. Is changing the bodygroups with [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG] [URL="http://wiki.garrysmod.com/page/Entity/SetBodygroup"]Entity:SetBodygroup[/URL] instead of [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG] [URL="http://wiki.garrysmod.com/page/Entity/SetBodyGroups"]Entity:SetBodyGroups[/URL] the only way? (change each bodygroup instead of all at once)
SetBodyGroups automatically calls SetBodygroup for you internally, but it's basically the same stuff, so yeah, use SetBodygroup
i found a workaround - if you seperate all bodygroup numbers using a character like ";" you can use string.explode and save it somewhere as one single string ("0;11;5;1;1;1;0" for example)
Sorry, you need to Log In to post a reply to this thread.