IsTrailerAttached
#1

i want to see when a trailer is attached to the truck so i got this
pawn Код:
MissionTruckTrailer[playerid] = CreateVehicle(584,90.80000305,-301.20001221,2.70000005,0.00000000,-1,-1,15);

//Then Later On
if(IsTrailerAttachedToVehicle(MissionTruckTrailer[playerid])||GetVehicleTrailer(MissionTruckTrailer[playerid]))//i tried with moth of them but dont work
        {
            SetPlayerCheckpoint(playerid,1106.1999511719,-1209.6999511719,16.799999237061, 10);
        }
so it does not detect if it's attached!
Reply
#2

still having the same problem any help ?
Reply
#3

You're doing it wrong. You need to check the truck itself, not its trailer.
Reply
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
You're doing it wrong. You need to check the truck itself, not its trailer.
ok i see tnx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)