horacy
Известный
- 110
- 96
как получить разбита ли фара у машины?
вы, вероятно, можете проверить это с помощью этих функций.
Build software better, together
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.
C++:
CVehicle* cveh = getSelfCVehicle();
//0-off light on-1+
for (size_t i = 0; i < 4; i++)
{
addMessageToChatWindow("light id %d state: %d", i,cveh->GetDamageManager()->GetLightStatus(i));
}
//damage status panels
for (size_t i = 0; i < 3; i++)
{
addMessageToChatWindow("panel id %d state: %d", i,cveh->GetDamageManager()->GetPanelStatus(i));
}
нужно проверить какому ID панели соответствует отражатель и какому статусу соответствует поврежденный отражатель