attach
#5

Quote:
Originally Posted by Deken
View Post
try making a timer and when timer end then try to attach trailer in public timerend?
Nope

Quote:

forward OnTrailerAttached();

public OnTrailerAttached()
{
for(new x; x < 4; x++) AttachTrailerToVehicle(utilitytrailer[x], NVTransportas[x]);
}

new NVTransportas[4];
new utilitytrailer[4];

OnGameModeInit()
{
NVTransportas[0] = CreateVehicle(583, -3779.2019, -1880.6560, 5.2844, 90.0000, -1, -1, 100);
NVTransportas[1] = CreateVehicle(583, -3778.9314, -1884.0042, 5.2844, 90.0000, -1, -1, 100);
NVTransportas[2] = CreateVehicle(583, -3778.3508, -1887.5313, 5.2844, 90.0000, -1, -1, 100);
NVTransportas[3] = CreateVehicle(583, -3777.9119, -1890.9458, 5.2844, 90.0000, -1, -1, 100);

utilitytrailer[0] = CreateVehicle(611, -3775.2961, -1880.6464, 5.4584, 90.0000, -1, -1, 100);
utilitytrailer[1] = CreateVehicle(611, -3775.0056, -1884.0587, 5.4584, 90.0000, -1, -1, 100);
utilitytrailer[2] = CreateVehicle(611, -3774.0906, -1890.9784, 5.4584, 90.0000, -1, -1, 100);
utilitytrailer[3] = CreateVehicle(611, -3774.3333, -1887.6206, 5.4584, 90.0000, -1, -1, 100);

SetTimer("OnTrailerAttached", 5000, false);
}

Reply


Messages In This Thread
attach - by Heress - 22.12.2018, 09:55
Re: attach - by InsaneBR - 22.12.2018, 14:58
Re: attach - by Heress - 23.12.2018, 17:42
Re: attach - by Deken - 23.12.2018, 17:45
Re: attach - by Heress - 23.12.2018, 17:57
Re: attach - by Deken - 23.12.2018, 18:01
Re: attach - by Heress - 23.12.2018, 21:00
Re: attach - by AlfaSufaIndo - 23.12.2018, 22:48
Re: attach - by AlfaSufaIndo - 23.12.2018, 22:55
Re: attach - by Heress - 27.12.2018, 13:00

Forum Jump:


Users browsing this thread: 3 Guest(s)