3 [
Attribute(
"0", UIWidgets.Auto,
"The index of the tire this action should be activated on",
category:
"")]
4 protected int m_iTireIndex;
6 #ifdef ENABLE_DESTRUCTION
7 protected SCR_TireReplacementManagerComponent m_ReplacementManager;
12 if(!m_ReplacementManager)
15 return m_ReplacementManager.CanTireBeReplaced(m_iTireIndex);
21 if(!m_ReplacementManager)
25 return m_ReplacementManager.IsWheelAreaClear(m_iTireIndex, user);
28 override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
30 if(!m_ReplacementManager)
33 m_ReplacementManager.InitReplace(m_iTireIndex);
37 override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
40 m_ReplacementManager = SCR_TireReplacementManagerComponent.Cast(ownerEntity.FindComponent(SCR_TireReplacementManagerComponent));