```
class TestMoveTurretComponentClass : ScriptComponentClass
{
}
class TestMoveTurretComponent : ScriptComponent
{
//------------------------------------------------------------------------------------------------
override protected event void OnPostInit(IEntity owner)
{
Print("TestMoveTurretComponent::OnPostInit()");
SetEventMask(owner, EntityEvent.INIT);
}
//------------------------------------------------------------------------------------------------
override protected void EOnInit(IEntity owner)
{
Print("TestMoveTurretComponent::EOnInit()");
SlotManagerComponent slotManager = SlotManagerComponent.Cast(owner.FindComponent(SlotManagerComponent));
array<EntitySlotInfo> outSlotInfos();
slotManager.GetSlotInfos(outSlotInfos);
foreach (EntitySlotInfo slotInfo : outSlotInfos)
{
IEntity slotEntity = slotInfo.GetAttachedEntity();
if (!slotEntity)
continue;
TurretControllerComponent turretController = TurretControllerComponent.Cast(slotEntity.FindComponent(TurretControllerComponent));
if (!turretController)
continue;
turretController.SetAimingAngles(120.0 * Math.DEG2RAD, 15.0 * Math.DEG2RAD);
}
}
}
```
Put this component onto your `{B47110AA1A806556}Prefabs/Vehicles/Wheeled/BTR70/BTR70_FIA.et` and see how it only does 90 degrees.