Hey guys,
Been looking for a way to bind a command that'll allow regular users to set a certain bodygroup (Like the torso, arms or legs), to that of given value. Example; the Halo Reach MP/Off-Duty models have (seen from Robotboy655's easy body group tool) a Bodygroup called "Combat Vest" and when it's value is set to 1, the bodygroup (torso area) applies a combat vest. This value is "1". - Anyway, I've done some digging and kindly a user on here had the same problem/query and posted what he scripted on here too!
nut.command.add("gearon", {
syntax = "",
onRun = function(client, arguments)
client:SetBodygroup("1","2")
end
})
nut.command.add("gearoff", {
syntax = "",
onRun = function(client, arguments)
client:SetBodygroup("1","0")
end
})
Now I know there are normally two elements to a Entity.SetBodygroup function or rather client.SetBodygroup, the Bodygroup and the Value. One of which is category, the other is the value number in that category that identifies which model in the bodygroup you want. Say for instance; "Bodygroup = Combat vest (Torso), Value 0-1, I set 1. Value = 1.
I need this scripted. I have no clue how, tried adding and, as so below:
onRun = function(client, arguments)
client:SetBodygroup("1","0")
and Set...blah blah
Would anyone be able to help me here at all? I may have gotten it COMPLETELY wrong; I just don't know how to fully script or identify bodygroups. - Simply put. I need someone to help me script a command that'll allow users to set their bodygroup model to armoured or unarmoured (Off-duty)
Cheers.
Damn... no one?
Not to worries, I solved this myself.
Maybe nobody helped you because nobody knew how, maybe someone needs the answer and you could help
Or take revenge, ignore and then disappear
Sorry, you need to Log In to post a reply to this thread.