[Include] [INC] Smooth Rotate
#1

NOTE: This is a very old, very bad script. If anyone still finds this topic and wants to use it, you're better off using Shadow_Gengar's update to my script: http://pastebin.com/bTQHHGNg


Author:
Lavamike

Description:
Rotates an object pretty smoothly around (Rotates Float:Z)
This is my first release (I think?) so don't harass me if there's some bugs :P
At least I tried

Functions:
StartRotateObject(objectid);
StopRotateObject(objectid);

Tips:
Read The Readme File and/or look below


Quote:
Originally Posted by Readme.txt
Installing:

1. Extract "SRotate.inc" to your \server\pawno\include

2. Open up your script and add "#include <SRotate>" (without the quotes)
under your other #include's

3. Use the following new functions:
StartRotateObject(objectid);
StopRotateObject(objectid);



Notes:

1. Do NOT do a StartRotateObject on an object that is already rotating.

2. StopRotateObject only works one-by-one.
So if you have something like this:

pawn Code:
if (strcmp("/stoprotate", cmdtext, true, 10) == 0)
{
  StopRotateObject(17);
  StopRotateObject(18);
  StopRotateObject(19);
  StopRotateObject(20);
  return 1;
}
Only objectid 17 will stop. the others won't.



-- Monday, November 3rd 2008
Download:

http://www.sendspace.com/file/hzm11f (Sendspace [Recommended])
http://pawn.pastebin.com/f3d0e26e9 (Pastebin [Messes up indentation])
Reply


Messages In This Thread
[INC] Smooth Rotate - by lavamike - 10.11.2008, 22:24
Re: [INC] Smooth Rotate - by lavamike - 10.11.2008, 22:34
Re: [INC] Smooth Rotate - by JaTochNietDan - 10.11.2008, 22:36
Re: [INC] Smooth Rotate - by lavamike - 10.11.2008, 22:44
Re: [INC] Smooth Rotate - by whooper - 11.11.2008, 00:45
Re: [INC] Smooth Rotate - by gecatahh - 11.11.2008, 12:59
Re: [INC] Smooth Rotate - by Karlip - 11.11.2008, 13:46
Re: [INC] Smooth Rotate - by MenaceX^ - 11.11.2008, 14:05
Re: [INC] Smooth Rotate - by gtalover12 - 16.01.2009, 17:41
Re: [INC] Smooth Rotate - by sciman001 - 19.03.2011, 06:12
Re: [INC] Smooth Rotate - by Kwarde - 19.03.2011, 06:41
Re: [INC] Smooth Rotate - by Pz - 19.03.2011, 07:02
AW: [INC] Smooth Rotate - by Shadow_Gengar - 19.03.2011, 07:34

Forum Jump:


Users browsing this thread: 2 Guest(s)