• Player model stuck in T-Pose?
    3 replies, posted
Making a gamemode and for some reason my character is always in T-Pose except for when I jump, which causes it to do the landing animation after hitting the ground. Can someone help please? [lua] local PlayerModel = { Model("models/humans/group01/female_01.mdl"), Model("models/humans/group01/female_02.mdl"), Model("models/humans/group01/female_03.mdl"), Model("models/humans/group01/female_04.mdl"), Model("models/humans/group01/female_06.mdl"), Model("models/humans/group01/female_07.mdl"), Model("models/humans/group01/male_01.mdl"), Model("models/humans/group01/male_02.mdl"), Model("models/humans/group01/male_03.mdl"), Model("models/humans/group01/male_04.mdl"), Model("models/humans/group01/male_05.mdl"), Model("models/humans/group01/male_06.mdl") } function GM:PlayerSpawn( ply ) ply:SetArmor(100) ply:SetHealth(100) ply:SetWalkSpeed(200) ply:SetRunSpeed(400) ply:SetJumpPower(220) ply:Give("ls_aug") ply:SetModel(PlayerModel[math.random(1,#PlayerModel)]) end [/lua] Thanks in advance
"humans" should be "player" in your table
Handy reference sheet for all internal models, [url]http://facepunch.com/showthread.php?t=909068[/url]
Well, I feel stupid. Thanks all.
Sorry, you need to Log In to post a reply to this thread.