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

Method IssueGetOut

engine/Poseidon/AI/AIUnitImpl.cpp:164–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void AIUnit::IssueGetOut()
165{
166 if (IsFreeSoldier())
167 {
168 return;
169 }
170
171 AI_ERROR(_inVehicle); // !IsFreeSoldier
172 Person* driverMan = _inVehicle->Driver();
173 AIUnit* driver = driverMan ? driverMan->Brain() : nullptr;
174 if (driver)
175 {
176 _inVehicle->WaitForGetOut(this);
177 }
178 else
179 {
180 _inVehicle->GetOutStarted(this);
181 }
182}
183
184CameraType ValidateCamera(CameraType cam)
185{

Callers 1

IssueCommandMethod · 0.80

Calls 4

DriverMethod · 0.80
BrainMethod · 0.80
WaitForGetOutMethod · 0.80
GetOutStartedMethod · 0.80

Tested by

no test coverage detected