SA-MP Forums Archive
IsTrailerAttached - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: IsTrailerAttached (/showthread.php?tid=300049)



IsTrailerAttached - park4bmx - 28.11.2011

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!


Re: IsTrailerAttached - park4bmx - 29.11.2011

still having the same problem any help ?


Re: IsTrailerAttached - Vince - 29.11.2011

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


Re: IsTrailerAttached - park4bmx - 29.11.2011

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