3 protected const int VERSION = 2;
15 m_Arrows.Insert(arrow);
20 m_Arrows.RemoveItem(arrow);
36 return m_Arrows.Count();
39 void DropArrow(
int index)
41 if (m_Arrows.Count() > index)
43 EntityAI arrow = m_Arrows.Get(index);
44 vector pos = arrow.GetPosition();
49 Math3D.MatrixIdentity4(m4);
52 arrow.PlaceOnSurfaceRotated(m4, pos);
54 arrow.SetTransform(m4);
55 arrow.PlaceOnSurface();
66 for (
int i = m_Arrows.Count() - 1; i >= 0 ; i--)
74 if (m_Arrows.Count() > index)
76 return m_Arrows.Get(index);
86 return m_Arrows.Get(0);
92 EntityAI AcquireFirstArrow(
bool keepTransform =
false)
95 m_Owner.RemoveChild(entity, keepTransform);