5 [
Attribute(
"0", UIWidgets.CheckBox,
desc:
"True - find illumination of controlled turret | False - find current weapon in hand illumination")]
6 protected bool m_bCheckTurret;
19 sights = CurrentTurretSight(
data);
23 sights = CurrentWeaponSights(
data);
30 return GetReturnResult(sights.HasIllumination());
37 if (!controlledEntity)
40 ChimeraCharacter character = ChimeraCharacter.Cast(controlledEntity);
44 BaseWeaponManagerComponent weaponManager = character.GetCharacterController().GetWeaponManagerComponent();
48 BaseSightsComponent currentSights = weaponManager.GetCurrentSights();
59 BaseControllerComponent controller =
data.GetCurrentVehicleController();
64 IEntity turretEntity = controller.GetOwner();
68 TurretComponent turret = TurretComponent.Cast(turretEntity.FindComponent(TurretComponent));