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

model with fx just wont rotate

broken avatar :(
Created 9 years ago
by Harry Bo21
0 Members and 1 Guest are viewing this topic.
1,427 views
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
Ok, so im making electric cherry, and stevies done me a cool fx

So ive been trying to use it but it just will not face "forward"

Ive been spawning a model ("tag_origin" ), then later coz it just wouldnt line up i used a perk bottle

now i see, no matter what i do in code, the bottle just will not rotate... it should be facing the same way i am, even if i link it, it still doesnt follow my angle? Where am i going wrong? lol

Code Snippet
Plaintext
test_angles( player )
{
 // tag = spawn( "script_model", player.origin );
 self setmodel( "bo2_t6_wpn_zmb_perk_bottle_bear_world" );
 self.angles = anglestoforward( player getplayerangles() ) + ( 270, 180, 0 );
 // self.angles = anglestoforward( player getplayerangles() )+ ( 0, 270, 0 );
 self linkto( player );
 PlayFxOnTag( level._effect[ "cherry_shock_3" ], self, "tag_origin" );
 while( 1 )
 {
wait .01;
self.angles = anglestoforward( player getplayerangles() ) + ( 270, 180, 0 );
 }
}
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 4 years ago
Posts
941
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
Ok, so im making electric cherry, and stevies done me a cool fx

So ive been trying to use it but it just will not face "forward"

Ive been spawning a model ("tag_origin" ), then later coz it just wouldnt line up i used a perk bottle

now i see, no matter what i do in code, the bottle just will not rotate... it should be facing the same way i am, even if i link it, it still doesnt follow my angle? Where am i going wrong? lol

Code Snippet
Plaintext
test_angles( player )
{
 // tag = spawn( "script_model", player.origin );
 self setmodel( "bo2_t6_wpn_zmb_perk_bottle_bear_world" );
 self.angles = anglestoforward( player getplayerangles() ) + ( 270, 180, 0 );
 // self.angles = anglestoforward( player getplayerangles() )+ ( 0, 270, 0 );
 self linkto( player );
 PlayFxOnTag( level._effect[ "cherry_shock_3" ], self, "tag_origin" );
 while( 1 )
 {
wait .01;
self.angles = anglestoforward( player getplayerangles() ) + ( 270, 180, 0 );
 }
}
i dont think its the code, sometimes some fx's make me the same and i cant figure why :( maybe your problem can be fixed by editing the fx velocity to effect now or world
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
ignoring the fx for a moment, the model is not turning either, and it should be
Marked as best answer by Harry Bo21 9 years ago
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
ok, so in the end i found unlinking it, and updating its co-ordanites using the following worked in the end :

Code Snippet
Plaintext
harrybo21_perks_follow_angles( player )
{
while( 1 )
{
self.origin = player.origin;
self.angles = player.angles + ( 270, 0, 0 );
wait .01;
}
}

 
Loading ...