CreateDynamicObject and CreateVehicle
#1

Why sometimes, after I create a vehicle with CreateVehicle, the vehicle spawns under my object (created with CreateDynamicObject) ... The vehicle doesn't recieve the object fast enough, or what? ... I think the vehicle have "lag" and sometimes spawns udner ... any solutions?
Reply
#2

Try to set Z coordinate +1 or +2 on vehicles, If there is not huge lagg, it will help.
Reply
#3

i'll explain :

CreateDynamicObject is for streamer,
when you use it, it's not like CreateObject, it's create the object slower than CreateObject, so there is a laps of time (1-2 seconds) to spawn,
CreateVehicle spawn your vehicle instantenly, so the MAP spend MORE time to Spawn than the VEHICLE
Reply
#4

I suggest setting the floor only in the map as CreateObject and the rest is CreateDynamicObject, and it will do the job I guess.
Reply
#5

yeah, but it's longer than putting vйhicles Z position +2 , he have to search the floor object x)
Reply
#6

I don't think so you can use both. As I remember you can use just CreateObject or just CreateDynamicObject, but maybe I am wrong.
Reply
#7

Any official answer from SA-MP Team please ? ... I want more explications
Reply
#8

Look,
you can use both CreateObject and CreateDynamicObject,
for the floors, i suggest to use CreateObject,
and you can CreateDynamicObject for other objects,

SA:MP Team does not answer to this posts,
We gave you all the explications that you need
Reply
#9

Quote:
Originally Posted by Ramoboss
Посмотреть сообщение
Look,
you can use both CreateObject and CreateDynamicObject,
for the floors, i suggest to use CreateObject,
and you can CreateDynamicObject for other objects,

SA:MP Team does not answer to this posts,
We gave you all the explications that you need
If you are using streamer DON'T EVER use CreateObject.Streamer use CreateObject to create objects and destroy them, but if you limit his resource (aka createobject) you will get bad small range of loaded objects.

OT: as above suggested put vehicle Z + 1-3 above object.
Reply
#10

When you create a vehicle, the server knows the Z (height) already so set it a bit higher as suggested above. It's like when teleporting with vehicle and the ground's object has been created with the streamer plugin, you fall under it. The function Streamer_UpdateEx is useful for that kind of situations.

Quote:
Originally Posted by doreto
Посмотреть сообщение
Streamer use CreateObject to create objects and destroy them
Streamer uses CreatePlayerObject function.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)