[Help] Falling Cars -
UnLoVeD123 - 11.02.2009
Hi,
Heres my problem, I'm using xObjects streamer, when I'm teleporting like to "/BigJump" the cars fall, why? How to stop them from falling? A Friend told me that I have to study more xObjects... I didn't get him. I tryed to search in this forum but none... If you can help PLEASE help me =\
Re: [Help] Falling Cars -
Grove - 11.02.2009
Try posting in the xStreamer topic for help.
Re: [Help] Falling Cars -
Dark_BasS - 11.02.2009
I have seen this befor on few servers

The problem is in the player position

Go heighter and than /save , the cars are goind down cous you teleported under that object..
Re: [Help] Falling Cars -
UnLoVeD123 - 11.02.2009
Quote:
Originally Posted by -Dark_BasS-
I have seen this befor on few servers 
The problem is in the player position 
Go heighter and than /save , the cars are goind down cous you teleported under that object..
|
Thanx
Re: [Help] Falling Cars -
pspleo - 11.02.2009
Quote:
Originally Posted by -Dark_BasS-
I have seen this befor on few servers 
The problem is in the player position 
Go heighter and than /save , the cars are goind down cous you teleported under that object..
|
Not correct. The objects load too slow, so that you fall down below them.
Re: [Help] Falling Cars -
Joe Staff - 11.02.2009
You have to force the loading of the object before the player is teleported, but because streamers use timers relative to position, instead of function off of call backs, it's not possible. ****** should make his streamer allow objects to be loaded via control optionally to player location to prevent this from happening. This is one of the reasons I don't use streamers, I just load the objects I need OnPlayerEnterInterior, but then again I don't run a stunt server.
Re: [Help] Falling Cars - WackoX - 11.02.2009
Tips:
* Only use CreateVehicle for a vehicle that's on a objects and it can go falling down.
* Get another bether vehicle streamer.
* Place the vehicle's like 5-10 feet above the normal spawn X.
Re: [Help] Falling Cars -
c-middia - 11.02.2009
or put the objects you park your cars on as part of your game mode
this way cars wont fall through.
pawn Код:
new object_01;//at the top
object_01 = CreateObject(id,x,y,z,rx,ry,rz);//OnGameModeInit
DestroyObject(object_01);//GameModeExitFunc
now your cars will spawn on the solid object and you can send your players there they will not fall through the object
hope this helped
Re: [Help] Falling Cars -
Dark_BasS - 11.02.2009
Quote:
Originally Posted by [K4L
Leopard ]
Quote:
Originally Posted by -Dark_BasS-
I have seen this befor on few servers 
The problem is in the player position 
Go heighter and than /save , the cars are goind down cous you teleported under that object..
|
Not correct. The objects load too slow, so that you fall down below them.
|
Yeah you're right

UnLoVeD123 you should do dynUpdate like this
top of the gm write forwards
forward DynUpdateStart(playerid);
forward DynUpdateEnd(playerid);
than creat :
public DynUpdateStart(playerid)
{
TogglePlayerControllable(playerid, false);
new string[255];
format(string, sizeof(string), "~w~Objects~n~~r~Loading");
GameTextForPlayer(playerid, string, 3000, 6);
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
if(GetPlayerPing(playerid) < 100) { SetTimerEx("DynUpdateEnd", 2000, 0,"e",playerid); }
else if(GetPlayerPing(playerid) > 100) { SetTimerEx("DynUpdateEnd", 2000, 0,"e",playerid); }
else if(GetPlayerPing(playerid) > 200) { SetTimerEx("DynUpdateEnd", 2200, 0,"e",playerid); }
else if(GetPlayerPing(playerid) > 300) { SetTimerEx("DynUpdateEnd", 2700, 0,"e",playerid); }
else if(GetPlayerPing(playerid) > 500) { SetTimerEx("DynUpdateEnd", 3000, 0,"e",playerid); }
else { SetTimerEx("DynUpdateEnd", 2700, 0,"e",playerid); }
return 1;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public DynUpdateEnd(playerid) //Shurty40
{
TogglePlayerControllable(playerid, true);
new string[255];
format(string, sizeof(string), "~w~Objects~n~~r~Loaded!");
GameTextForPlayer(playerid, string, 3000, 6);
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
return 1;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
This will work it will stop on that position where he must and you will need to wait about 5 sec and than it will load and no falling cars