Panels - GetVehicleDamageStatus?
#1

I just wonder what is Panels variables on this function? I just test that on UpdateVehicleDamageStatus but nothing change on the vehicle?

Function using:

//Panels
Quote:

decode_panels(panels, &front_left_panel, &front_right_panel, &rear_left_panel, &rear_right_panel, &windshield, &front_bumper, &rear_bumper)
{
front_left_panel = panels & 15;
front_right_panel = panels >> 4 & 15;
rear_left_panel = panels >> 8 & 15;
rear_right_panel = panels >> 12 & 15;
windshield = panels >> 16 & 15;
front_bumper = panels >> 20 & 15;
rear_bumper = panels >> 24 & 15;
}
encode_panels(front_left_panel, front_right_panel, rear_left_panel, rear_right_panel, windshield, front_bumper, rear_bumper)
{
return front_left_panel | (front_right_panel << 4) | (rear_left_panel << | (rear_right_panel << 12) | (windshield << 16) | (front_bumper << 20) | (rear_bumper << 24);
}

Source: https://sampwiki.blast.hk/wiki/DamageStatus
Reply
#2

GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);

That function is to get every vehicle panels status.
Reply
#3

Quote:
Originally Posted by X337
Посмотреть сообщение
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);

That function is to get every vehicle panels status.
Nah i know how that function work, i just wonder what is PANELS meaning? I just test all of them but can't see anything change when damaged on this.
Reply
#4

Front and back bumper and this things http://image.prntscr.com/image/61f32...f659f506cf.png
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)