Gate Rotation problem
#1

Hello.
When im opening the gate it rotates 90deegress and then i close it, it closes in rotated position.
Im using xStreamer and 0.3e samp version.
So how to fix this?

(many people are having the same problem)
Preparing to open:

Opened:

Closed:
Reply
#2

https://sampwiki.blast.hk/wiki/SetObjectRot
Reply
#3

Код:
if(playerDB[playerid][admin] )
	   	{
	   	if (!strcmp("/open", cmdtext, true)) return MoveObject(shvi, -1551.58984375, 541.5791015625, 2.7030792236328, 3);
	   	if (!strcmp("/close", cmdtext, true)) return MoveObject(shvi, -1551.5900878906, 541.57940673828, 8.9530792236328, 3);
        }
If this is the opening and closing command, where do i use SetObjectRot ??
Reply
#4

Instead of moveobject setobjectRot.

open :

PHP код:
if (!strcmp("/open"cmdtexttrue)) return SetObjectRot(shvi, -1551.58984375541.57910156252.7030792236328); 
Reply
#5

i just tried it, and nothing happened, the server log doesnt even show that i typed the command.
anything else?
Reply
#6

Show the full coordinates
Reply
#7

you mean
Код:
MoveObject(objectid, float:x, float:y, float:z, float:speed, float:Rotx, float:Roty, float:Rotz)
??
Reply
#8

Of your gate.
Reply
#9

Код:
shvi = CreateObject(980, -1551.5900878906, 541.57940673828, 8.9530792236328, 0, 0, 270);
coordinates of the gate
Reply
#10

Okay now give your full codes for open and closed wih the float:Rotx, float:Roty, float:Rotz

You need these to rotate the object

like close gate = shvi = CreateObject(980, -1551.5900878906, 541.57940673828, 8.9530792236328, 0, 0, 270);

open gate : ....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)