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

How to link 'script_model' to a player without glitching.

broken avatar :(
Created 1 month ago
by gympie6
0 Members and 1 Guest are viewing this topic.
89 views
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 20 September 2013
Last active: 4 weeks ago
Posts
669
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
No code is bug free
Signature
My published cod maps:

Subzero
Djinncaves
Enclosed (a.k.a baconcube)
Bayern
Snowblind
Furtrelock

Black Ops Perks: https://www.ugx-mods.com/forum/scripts/55/call-of-duty-world-at-war-black-ops-perks/22180/
×
gympie6's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
gympie6's Contact & Social LinksTeffrieGympie5#5971TheRevenantSkullTeffrie
Maybe you have noticed that the player is facing into one direction and is unable to rotate?
How to fix this?
Using a script_origin is the answer!
 
Code Snippet
Plaintext
script_model = spawn("script_model", player getTagOrigin( tag ) );
script_model.angles = player GetTagAngles( tag );
script_model SetModel( "tag_origin" );

script_origin = spawn("script_origin", player getTagOrigin( tag ) );
script_model linkto(script_origin);
script_origin linkto(player);
By linking the  'script_model' to a 'script_origin' and then to the player, this issue no longer occurs. :)
Last Edit: March 26, 2025, 11:21:31 pm by gympie6

 
Loading ...