SA-MP Forums Archive
Problem with Moving Object - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with Moving Object (/showthread.php?tid=137391)



Problem with Moving Object - Toni - 28.03.2010

I've Made my own little admin base,

And with it i made a elevator that goes to it from that tennis court in west LS to Glenn Park.

The Actual Admin base is about 1200 ft in the air ~ about ~

I'm using F_Streamer, and I'm only moving 1 object

The main problem is, When about 1/4 of the way, it just disappears, and goes back to its createobject coords.

Can Anyone Help? Here is the Code

pawn Код:
new adminelevator;
pawn Код:
adminelevator = F_CreateObject(5837, 730.019836, -1257.473389, 14.270897, 0.0000, 358.2811, 359.0633);
pawn Код:
if(strcmp(cmd, "/elevatorup", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
          if(PlayerInfo[playerid][pAdmin] >= 2)
          {
             SendClientMessage(playerid, COLOR_RED, "The Admin Elevator is moving up.");
            F_MoveObject(adminelevator, 1943.292847, -1262.474487, 861.437500, 25);
          }
          else
          {
            SendClientMessage(playerid, COLOR_RED, "You are not authorized to use that command!");
          }
        }
        return 1;
    }

P.S - The Pawn Code doesn't really look like that with absolutely wrong indents, its just the damn spaces and tabs.


Re: Problem with Moving Object - Toni - 29.03.2010

Can Someone Pleeeaaseee help and its been a full 12 hours to bump.


Re: Problem with Moving Object - XxJoexX - 29.03.2010

I think it works the same way try this:
https://sampwiki.blast.hk/wiki/Automatic_Gates

It sounds to me like a timer ?


Re: Problem with Moving Object - Toni - 29.03.2010

well, actually its a elevator, that will go up...maybe its the time problem lol


Re: Problem with Moving Object - cssbart - 29.03.2010

have you fixed it


Re: Problem with Moving Object - cozza123456 - 29.03.2010

Quote:
Originally Posted by XxJoexX
I think it works the same way try this:
https://sampwiki.blast.hk/wiki/Automatic_Gates

It sounds to me like a timer ?
Fail


Re: Problem with Moving Object - Donny_k - 29.03.2010

Seems like a view distance issue, the object is probably going out of the stream range so it's being streamed back to where it was created (it's over 800 units) as the streamer isn't updating it.

Try firstly configuring the view distance and if that fails then make it a global object (not F_, normal native CreateObject).


Re: Problem with Moving Object - cssbart - 30.03.2010

try this app


Re: Problem with Moving Object - [03]Garsino - 30.03.2010

What speed are you using to move the object? Because I've had a problem myself when moving objects on high speed.