Created objects in VW 1. Attaching to vehicle in VW 0. Can't see them?
#1

Hi there, basically, I'm attaching all of these objects to the tram, so players when inside can see out as it moves, but they won't see the tram, just (See attached image).

So, It attaches properly because when I set the virtual world, for a split second I can see the interior attached to the tram.

pawn Код:
TramInterior[0] = CreateDynamicObject(3055,-2004.3066400,489.7246100,34.6670000,90.0000000,0.0000000,90.0000000,1); //object(kmb_shutter) (1)
    TramInterior[1] = CreateDynamicObject(3055,-2004.3066400,497.5068400,34.6670000,90.0000000,0.0000000,90.0000000,1); //object(kmb_shutter) (2)
    TramInterior[2] = CreateDynamicObject(2946,-2006.4150400,488.2460000,34.2320000,90.0000000,0.0000000,0.0000000,1); //object(cr_door_03) (1)
    TramInterior[3] = CreateDynamicObject(2946,-2006.4150400,490.6210000,34.2320000,90.0000000,0.0000000,0.0000000,1); //object(cr_door_03) (2)
    TramInterior[4] = CreateDynamicObject(2946,-2006.4150400,493.0090000,34.2320000,90.0000000,0.0000000,0.0000000,1); //object(cr_door_03) (3)
    TramInterior[5] = CreateDynamicObject(2946,-2006.4150400,495.3970000,34.2320000,90.0000000,0.0000000,0.0000000,1); //amt 2946(4)
    TramInterior[6] = CreateDynamicObject(2946,-2006.4150400,497.7841800,34.2320000,90.0000000,0.0000000,0.0000000,1); //amt 2946(5)
    TramInterior[7] = CreateDynamicObject(2946,-2006.4150400,500.1730000,34.2320000,90.0000000,0.0000000,0.0000000,1); //amt 2946(6)
    TramInterior[8] = CreateDynamicObject(2946,-2006.4150400,502.5610000,34.2320000,90.0000000,0.0000000,0.0000000,1); //amt 2946(7)
    TramInterior[9] = CreateDynamicObject(2946,-2006.4150400,501.4500100,34.2320000,90.0000000,0.0000000,0.0000000,1); //amt 2946(13)
    TramInterior[10] = CreateDynamicObject(2946,-2001.5500500,488.2450000,34.2320000,90.0000000,0.0000000,0.0000000,1); //object(cr_door_03) (4)
    TramInterior[11] = CreateDynamicObject(2946,-2001.5498000,490.6210000,34.2320000,90.0000000,0.0000000,0.0000000,1); //object(cr_door_03) (5)
    TramInterior[12] = CreateDynamicObject(2946,-2001.5495600,492.9970100,34.2320000,90.0000000,0.0000000,0.0000000,1); //amt 2946(16)
    TramInterior[13] = CreateDynamicObject(2946,-2001.5493200,495.3730200,34.2320000,90.0000000,0.0000000,0.0000000,1); //amt 2946(17)
    TramInterior[14] = CreateDynamicObject(2946,-2001.5490700,497.7490200,34.2320000,90.0000000,0.0000000,0.0000000,1); //amt 2946(18)
    TramInterior[15] = CreateDynamicObject(2946,-2001.5488300,500.1250300,34.2320000,90.0000000,0.0000000,0.0000000,1); //amt 2946(19)
    TramInterior[16] = CreateDynamicObject(2946,-2001.5485800,502.5010400,34.2320000,90.0000000,0.0000000,0.0000000,1); //amt 2946(20)
    TramInterior[17] = CreateDynamicObject(2946,-2001.5483400,504.8770400,34.2320000,90.0000000,0.0000000,0.0000000,1); //amt 2946(21)
    TramInterior[18] = CreateDynamicObject(2946,-2001.5481000,507.2530500,34.2320000,90.0000000,0.0000000,0.0000000,1); //amt 2946(22)
    TramInterior[19] = CreateDynamicObject(2946,-2001.5468700,501.3181800,34.2320000,90.0000000,0.0000000,0.0000000,1); //amt 2946(26)
    TramInterior[20] = CreateDynamicObject(2946,-2006.4150400,488.2441400,35.8110000,90.0000000,0.0000000,0.0000000,1); //object(cr_door_03) (7)
    TramInterior[21] = CreateDynamicObject(2946,-2006.4150400,493.0087900,35.8110000,90.0000000,0.0000000,0.0000000,1); //object(cr_door_03) (8)
    TramInterior[22] = CreateDynamicObject(2946,-2006.4150400,497.7724600,35.8110000,90.0000000,0.0000000,0.0000000,1); //amt 2946(30)
    TramInterior[23] = CreateDynamicObject(2946,-2001.5498000,488.2441400,35.8110000,90.0000000,0.0000000,0.0000000,1); //object(cr_door_03) (10)
    TramInterior[24] = CreateDynamicObject(2946,-2001.5488300,492.9960900,35.8110000,90.0000000,0.0000000,0.0000000,1); //amt 2946(16)
    TramInterior[25] = CreateDynamicObject(2946,-2001.5478500,497.7480500,35.8110000,90.0000000,0.0000000,0.0000000,1); //amt 2946(38)
    TramInterior[26] = CreateDynamicObject(2946,-2001.5293000,501.4500100,34.2320000,90.0000000,0.0000000,0.0000000,1); //amt 2946(26)
    TramInterior[27] = CreateDynamicObject(3089,-2003.8139600,501.3500100,36.0060000,0.0000000,0.0000000,0.0000000,1); //object(ab_casdorlok) (2)
    TramInterior[28] = CreateDynamicObject(3089,-2004.9840100,501.3490000,36.0060000,0.0000000,0.0000000,179.9950000,1); //object(ab_casdorlok) (3)
    TramInterior[29] = CreateDynamicObject(3089,-2003.0644500,485.9453100,36.0060000,0.0000000,0.0000000,0.0000000,1); //object(ab_casdorlok) (7)
    TramInterior[30] = CreateDynamicObject(3089,-2004.8671900,485.9460100,36.0060000,0.0000000,0.0000000,179.9950000,1); //object(ab_casdorlok) (8)
    TramInterior[31] = CreateDynamicObject(3089,-2003.2349900,485.9450100,36.0060000,0.0000000,0.0000000,179.9950000,1); //object(ab_casdorlok) (9)
    TramInterior[32] = CreateDynamicObject(3089,-2003.9360400,485.9500100,36.0060000,0.0000000,0.0000000,179.9950000,1); //object(ab_casdorlok) (10)
    TramInterior[33] = CreateDynamicObject(3089,-2003.7659900,485.9500100,36.0060000,0.0000000,0.0000000,0.0000000,1); //object(ab_casdorlok) (11)
    TramInterior[34] = CreateDynamicObject(2808,-2006.0439500,500.2840000,35.3230000,0.0000000,0.0000000,270.0000000,1); //object(cj_pizza_chair4) (1)
    TramInterior[35] = CreateDynamicObject(2808,-2006.0439500,498.1910100,35.3230000,0.0000000,0.0000000,270.0000000,1); //object(cj_pizza_chair4) (2)
    TramInterior[36] = CreateDynamicObject(2808,-2006.0439500,496.0979900,35.3230000,0.0000000,0.0000000,270.0000000,1); //object(cj_pizza_chair4) (3)
//etc
pawn Код:
stock AttachTramInterior(vehicleid)
{
   if(vehicleid == tram1)
    {
        AttachDynamicObjectToVehicle(TramInterior[0], tram1, 0.000000, 0.000000, 0.000000, 90.000000, 0.000000, 90.000000);
        AttachDynamicObjectToVehicle(TramInterior[1], tram1, 0.000000, -7.782230, 0.000000, 90.000000, 0.000000, 90.000000);

//ETCETC
The ,1 = Virtual World on each. I attach all of these objects to the tram.

Any assistance would be kind.
Reply
#2

Bump.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)