Attaching a streamed object to a vehicle
#1

How do I attach a streamed object to a vehicle? I use Incognito's plugin.

This doesn't work:
pawn Код:
Neon[0][vehicleid]= CreateDynamicObject(obj,0,0,0,0,0,0);
        Neon[1][vehicleid]= CreateDynamicObject(obj,0,0,0,0,0,0);
        AttachObjectToVehicle(Neon[0][vehicleid], vehicleid, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(Neon[1][vehicleid], vehicleid, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
Reply
#2

Noway.

Streamed object is player object, and AttachPlayerObjectToVehicle didn't exist :S
Reply
#3

What should i do?
Reply
#4

wait until Incognito includes this feature
Reply
#5

No Incognito.

Wait until SA-MP team add AttachPlayerObjectToVehicle to SA-MP, or not add.
Reply
#6

Not the best method, but you could use CreateObject to attach objects to vehicles.

Yes, using CreateObject and streaming objects with Incognito's streamer can cause streaming problems, but using it wisely does seem to work good.
Reply
#7

Try
pawn Код:
Neon[0] = CreateDynamicObject(18648,0,0,0,0,0,0);
         Neon[1] = CreateDynamicObject(18648,0,0,0,0,0,0);
         AttachObjectToVehicle(Neon[0][vehicleid], GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
         AttachObjectToVehicle(Neon[1][vehicleid], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
Reply
#8

Quote:
Originally Posted by Ricop522
Посмотреть сообщение
Try
pawn Код:
Neon[0] = CreateDynamicObject(18648,0,0,0,0,0,0);
         Neon[1] = CreateDynamicObject(18648,0,0,0,0,0,0);
         AttachObjectToVehicle(Neon[0][vehicleid], GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
         AttachObjectToVehicle(Neon[1][vehicleid], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
Are you retarded or something? kurta999 told two times already that it's not possible until SA:MP team does something and you still post useless post.
Reply
#9

Quote:
Originally Posted by Rac3r
Посмотреть сообщение
Not the best method, but you could use CreateObject to attach objects to vehicles.

Yes, using CreateObject and streaming objects with Incognito's streamer can cause streaming problems, but using it wisely does seem to work good.
Thats bad, because the objects limit will be reached quite soon...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)