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

Function FindTargetReveal

engine/Poseidon/Game/Commands/GameStateExt.cpp:355–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355Target* FindTargetReveal(AIGroup* grp, EntityAI* veh)
356{
357 Target* tgt = grp->FindTarget(veh);
358 if (tgt)
359 {
360 return tgt;
361 }
362 return grp->AddTarget(veh, 0.3, 0.3, 3.0f);
363}
364
365#define TABLE_COMMAND(xxx, Xxx, RightType) \
366 GameOperator(GameNothing, "command" #xxx, function, VehCommand##Xxx, GameObjectOrArray, RightType), \

Callers 3

VehFireFunction · 0.85
VehWatchFunction · 0.85
VehTargetFunction · 0.85

Calls 2

FindTargetMethod · 0.45
AddTargetMethod · 0.45

Tested by

no test coverage detected