Getting vehicle height for sirens?
#2

There is no that function for now, but you can make one by your own.
pawn Код:
GetVehicleHeightForSiren(vehicleid)
{
    modelid = GetVehicleModel(vehicleid);
    switch(modelid)
    {
        case 400: return 5.0;
        case 550: return 6.0;
    }
    return -1;
}
And then you can use it like that.
pawn Код:
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
new siren = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(siren, vehicleid, 0.0, 0.0, GetVehicleHeightForSiren(vehicleid), 0.0, 0.0, 0.0);
Reply


Messages In This Thread
Getting vehicle height for sirens? - by acade - 21.12.2010, 12:45
Re: Getting vehicle height for sirens? - by Dark_Kostas - 21.12.2010, 15:44
Re: Getting vehicle height for sirens? - by acade - 21.12.2010, 17:17
Re: Getting vehicle height for sirens? - by Lookin - 21.12.2010, 20:48

Forum Jump:


Users browsing this thread: 2 Guest(s)