UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

any help to change viewmodel + viewhands for player in game (not as start)

broken avatar :(
Created 7 years ago
by Wolf_Silver
0 Members and 1 Guest are viewing this topic.
1,755 views
broken avatar :(
×
broken avatar :(
Location: frPontault-Combault, France
Date Registered: 18 October 2014
Last active: 2 months ago
Posts
86
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Signature
Visitez mon site : http://www.fr-mapping.net/index.php pour rejoindre la communauté Française sur le mod tools!
visit my website : http://www.fr-mapping.net/index.php to join french communauty on mod tools
×
Wolf_Silver's Groups
Hey,

can't find a fonction to change player model and viewhands in game (in my case after buying an armor) here my script:
Code Snippet
Plaintext
#using scripts\zm\_zm_score;



function main()
{
// INIT
 armor = getEnt("armor_model", "targetname");
 armor_model = "viewmodel_armored_player"; // le wiewmodel apres achat de l'armure
 viewhands_armor = "viewhands_armored_hands"; // les mains après achat de l'armure
 trig_armor = getEnt("armor_trig", "targetname");
 trig_armor setCursorHint("HINT_NOICON");
 trig_armor SetHintString("Maintenez &&1 pour prendre l'armure");
 cost = 2000; // Coût de l'armure mettre à '0' pour mettre gratuit.
 thread waittill_player(trig_armor, armor_model, viewhands_armor);
}

Function waittill_player(trig, model, viewhands)
{
trig waittill("trigger", player);
if(player.score >= cost)
{
player zm_score::minus_to_player_score(cost);
        break;
}
wait 0.1;
thread get_armor(player, model);
}

function get_armor(player, model, viewhands)
{
//player SetViewModel(model); // test
//player SetOffhandVisible(viewhands); // test
}

so these function must be located at get_armor()

thanks in advance :)

 
Loading ...