Gate Rotation problem -
The God - 28.10.2012
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:
Re: Gate Rotation problem -
ikbenremco - 28.10.2012
https://sampwiki.blast.hk/wiki/SetObjectRot
Re: Gate Rotation problem -
The God - 28.10.2012
Код:
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 ??
Re: Gate Rotation problem -
ikbenremco - 28.10.2012
Instead of moveobject setobjectRot.
open :
PHP код:
if (!strcmp("/open", cmdtext, true)) return SetObjectRot(shvi, -1551.58984375, 541.5791015625, 2.7030792236328);
Re: Gate Rotation problem -
The God - 28.10.2012
i just tried it, and nothing happened, the server log doesnt even show that i typed the command.
anything else?
Re: Gate Rotation problem -
ikbenremco - 28.10.2012
Show the full coordinates
Re: Gate Rotation problem -
The God - 28.10.2012
you mean
Код:
MoveObject(objectid, float:x, float:y, float:z, float:speed, float:Rotx, float:Roty, float:Rotz)
??
Re: Gate Rotation problem -
ikbenremco - 28.10.2012
Of your gate.
Re: Gate Rotation problem -
The God - 28.10.2012
Код:
shvi = CreateObject(980, -1551.5900878906, 541.57940673828, 8.9530792236328, 0, 0, 270);
coordinates of the gate
Re: Gate Rotation problem -
ikbenremco - 28.10.2012
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 : ....