Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BohemiaInteractive/CWR
/ IsGunner
Method
IsGunner
engine/Poseidon/AI/AIUnit.cpp:1350–1354 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1348
}
1349
1350
bool AIUnit::IsGunner() const
1351
{
1352
Transport* vehIn = GetVehicleIn();
1353
return vehIn && vehIn->GunnerBrain() == this;
1354
}
1355
1356
bool AIUnit::IsInCargo() const
1357
{
Callers
5
SendAnswer
Method · 0.45
CheckGetInGetOut
Method · 0.45
FindTarget
Method · 0.45
DrawGroupInfo
Method · 0.45
SimulateHUD
Method · 0.45
Calls
1
GunnerBrain
Method · 0.80
Tested by
no test coverage detected