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

Method FindObject

engine/Poseidon/UI/Map/UIMapExt.cpp:404–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404VehicleWithAI* CStaticMapArcadeViewer::FindObject(int id)
405{
406 int n = _objects.Size();
407 for (int i = 0; i < n; i++)
408 {
409 VehicleWithAI* veh = _objects[i];
410 if (!veh)
411 {
412 continue;
413 }
414 if (veh->ID() == id)
415 {
416 return veh;
417 }
418 }
419 return nullptr;
420}
421
422// drawing
423

Callers 6

GetWaypointPositionFunction · 0.45
ArcadeScriptedFunction · 0.45
GetDestroyTargetFunction · 0.45
CreateSensorFunction · 0.45
GetObjectMethod · 0.45
GuardedPointCreateFunction · 0.45

Calls 2

SizeMethod · 0.45
IDMethod · 0.45

Tested by

no test coverage detected