MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / CheckIfAliveInTransport

Method CheckIfAliveInTransport

engine/Poseidon/AI/AIUnitImpl.cpp:808–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

806void AIUnit::CheckIfAliveInTransport()
807{
808 if (GetLifeState() == AIUnit::LSAlive)
809 {
810 return;
811 }
812 Transport* veh = GetVehicleIn();
813 if (!veh)
814 {
815 return;
816 }
817 AIGroup* grp = GetGroup();
818 if (!grp)
819 {
820 return;
821 }
822 grp->SendIsDown(veh, this);
823}
824
825bool AIUnit::ProcessGetOut(bool parachute)
826{
827 if (!IsLocal())
828 {

Callers 2

SendAnswerMethod · 0.80
CheckGetInGetOutMethod · 0.80

Calls 2

GetGroupFunction · 0.85
SendIsDownMethod · 0.80

Tested by

no test coverage detected