Small help with 3dLabels
#1

I made a 3d label but it only shows if i switched places with truck1 and text1:

This is when i dont work.
pawn Код:
text1 = Create3DTextLabel("Trucking Mission", 0xFFFFFFFF, 2855.8965,916.0118,11.4402, 50.0, 0, 1 );
    truck1 = CreateVehicle(403,2855.8965,916.0118,11.4402,82.7324,0,255,900);
    Attach3DTextLabelToVehicle(text1,truck1,2855.8965,916.0118,11.4402);
This is when it works, but with this one, the label is not attached to the vehicle/

pawn Код:
text1 = Create3DTextLabel("Trucking Mission", 0xFFFFFFFF, 2855.8965,916.0118,11.4402, 50.0, 0, 1 );
    truck1 = CreateVehicle(403,2855.8965,916.0118,11.4402,82.7324,0,255,900);
    Attach3DTextLabelToVehicle(truck1,text1,2855.8965,916.0118,11.4402);
Reply
#2

Quote:
Originally Posted by Tee
Посмотреть сообщение
I made a 3d label but it only shows if i switched places with truck1 and text1:

This is when i dont work.
pawn Код:
text1 = Create3DTextLabel("Trucking Mission", 0xFFFFFFFF, 2855.8965,916.0118,11.4402, 50.0, 0, 1 );
    truck1 = CreateVehicle(403,2855.8965,916.0118,11.4402,82.7324,0,255,900);
    Attach3DTextLabelToVehicle(text1,truck1,2855.8965,916.0118,11.4402);
This is when it works, but with this one, the label is not attached to the vehicle/

pawn Код:
text1 = Create3DTextLabel("Trucking Mission", 0xFFFFFFFF, 2855.8965,916.0118,11.4402, 50.0, 0, 1 );
    truck1 = CreateVehicle(403,2855.8965,916.0118,11.4402,82.7324,0,255,900);
    Attach3DTextLabelToVehicle(truck1,text1,2855.8965,916.0118,11.4402);
pawn Код:
Attach3DTextLabelToVehicle(text1,truck1,0.0,0.0,0.0);
should work and I hope you defined text1 as: new Text3D: text1;
Reply
#3

Thanks. Now i understand, they are not normal pos, they are offsets.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)