Post: Rotating Model Functions
04-17-2012, 12:23 AM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); not many people actually know about this, but i thought i would share them.
i haven't posted nothing in this section for a while, so i hope a lot of people find this useful

there's 3 different types of rotation functions
- Clock Wise
- Flipping
- Rolling




obviously you will need to define your model, precache also if needed.
these functions all take the same arguments, but of course do different things

- Arguments taking
    
(rotating degrees, float rotation time, float acceleration time, float deceleration time);


Clockwise:
    
<Your model>[I] [b]RotateYAW[/b][/I](rotating degrees, float rotation time, float acceleration time, float deceleration time);


Flipping:
    
<Your model>[I] [b]RotatePitch[/b][/I](rotating degrees, float rotation time, float acceleration time, float deceleration time);


Rolling:
    
<Your model>[I] [b]RotateRoll[/b][/I](rotating degrees, float rotation time, float acceleration time, float deceleration time);





here's a little example of spawning your own weapon which rotates.
    
Rotate()
{
Model = spawn( "script_model", self.origin + ( 0, 0, 50 ));
Model setModel( GetWeaponModel( self GetCurrentWeapon() ));
self iPrintln( "Spawned Model" );
for(;Winky Winky
{
//Model RotatePitch( 360, 3, 0, 0 );
//Model RotateRoll( 360, 3, 0, 0 );
Model RotateYAW( 360, 3, 0, 0 );
wait 3;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Correy for this useful post:

04-17-2012, 06:12 AM #2
DlBSY993
There's 0nly 1..
This is a bit old currey?
04-17-2012, 06:37 AM #3
Correy
I'm the Original
Originally posted by DlBSY993 View Post
This is a bit old currey?


lmfao, not really.. i've not long ago found out about it and seeing from the lack of use i guess not many others knew it either
call me currey one more time and i'll expose you stare
04-17-2012, 06:39 AM #4
Originally posted by Correy View Post
lmfao, not really.. i've not long ago found out about it and seeing from the lack of use i guess not many others knew it either
call me currey one more time and i'll expose you stare


Curry, It is in the advanced forge in my red patch... Awesome face

The following user thanked x_DaftVader_x for this useful post:

Correy
04-17-2012, 06:55 AM #5
Correy
I'm the Original
Originally posted by x. View Post
Curry, It is in the advanced forge in my red patch... Awesome face



curry stare
ah cool, i've never looked into your patch.. i thought you used angles :p
04-17-2012, 08:08 AM #6
DlBSY993
There's 0nly 1..
Originally posted by Correy View Post
lmfao, not really.. i've not long ago found out about it and seeing from the lack of use i guess not many others knew it either
call me currey one more time and i'll expose you stare


Whats wrong with curry are you being Racist ?

The following user thanked DlBSY993 for this useful post:

04-17-2012, 11:37 AM #7
Seriously... >_> Also the time, de time and ac time don't have to be floats... they can be ints too
04-17-2012, 11:51 AM #8
247Yamato
< ^ > < ^ >
RotateTo is the best, Smile
04-17-2012, 02:25 PM #9
Correy
I'm the Original
Originally posted by 247Yamato View Post
RotateTo is the best, Smile


ah, ive never came across that..

---------- Post added at 03:25 PM ---------- Previous post was at 03:24 PM ----------

Originally posted by nZxMikeeeyx View Post
Seriously... >_> Also the time, de time and ac time don't have to be floats... they can be ints too


seriously?, it will help others and a float doesn't just have to be a decimal Dave
04-18-2012, 04:33 AM #10
Blackstorm
Veni. Vidi. Vici.
Originally posted by 247Yamato View Post
RotateTo is the best,


Yes, yes it is.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo