30.05.2010, 15:07
- What is it?
This is mi new include that has got 7 new functions. You can rotate objects (or create a rotation loop) like MoveObject function. - About
- Version: 0.1
- Last Update: 30/5/2010
- Created by: Gantzyo - Functions
pawn Код:- RotateObject(objectid,Float:rotX,Float:rotY,Float:rotZ,points,Float:speed);//rotX,rotY,rotZ is where have to rotate. Points is how many rotations positions will be between start rotation and end rotation
- SetObjectRotationSpeed(objectid,Float:speed);//Change rotation speed if the object is rotating
- StopRotatingObject(objectid);//Stop some object rotating
- GenerateBucle(objectid,Float:offX,Float:offY,Float:offZ,Float:speed)//Creates a loop(rotation that never ends). offX,offY,offZ is how many will increase/decrease the rotation in X,Y,Z
- StopBucle(objectid);//Stops the loop
- OnObjectRotated(objectid);//Activates when RotateObject ends
- OnObjectStopRotate(objectid);//Activates when use StopRotatingObject
- OnObjectStopBucle(objectid);//Activates when use StopBucle - How to install
1. Add in top of your script:
pawn Код:#include <G_ObjectsRot>
pawn Код:public OnObjectRotated(objectid)
{
return 1;
}
public OnObjectStopRotate(objectid)
{
return 1;
}
public OnObjectStopBucle(objectid)
{
return 1;
} - Video
[INC]G_ObjectsRot - SA-MP - New objects functions! - Bugs
No bugs detected - Download
- Include
- Example code
_________________________________________________
I hope you like it
Note: Bucle means Loop, I wrote it in my language and I forgot to change it. Maybe I'll reupload everything replacing Bucle by Loop