17 m_Entity1 = j.GetInventory().CreateEntityInCargo(
"Rag");
18 EntityAI s =
m_Owner.GetInventory().CreateInInventory(
"TacticalShirt_Grey");
19 m_Entity2 = s.GetInventory().CreateEntityInCargo(
"Roadflare");
22 override void OnUpdate (
float dt)
26 if (m_Entity1 && m_Entity2)
28 if (
m_Owner.GetInventory().CanSwapEntitiesEx(m_Entity1, m_Entity2))
31 m_Owner.PredictiveSwapEntities(m_Entity1, m_Entity2);
33 else if (
m_Owner.GetInventory().CanSwapEntitiesEx(m_Entity2, m_Entity1))
36 m_Owner.PredictiveSwapEntities(m_Entity2, m_Entity1);
55 m_Entity1 = j.GetInventory().CreateEntityInCargo(
"Rag");
56 EntityAI s =
m_Owner.GetInventory().CreateInInventory(
"TacticalShirt_Grey");
57 m_Entity2 = s.GetInventory().CreateEntityInCargo(
"Roadflare");
58 m_Owner.PredictiveTakeEntityToHands(m_Entity2);
61 override void OnUpdate (
float dt)
65 if (m_Entity1 && m_Entity2)
67 if (
m_Owner.GetInventory().CanSwapEntitiesEx(m_Entity1, m_Entity2))
70 m_Owner.PredictiveSwapEntities(m_Entity1, m_Entity2);
72 else if (
m_Owner.GetInventory().CanSwapEntitiesEx(m_Entity2, m_Entity1))
75 m_Owner.PredictiveSwapEntities(m_Entity2, m_Entity1);
94 m_Entity1 = j.GetInventory().CreateEntityInCargo(
"Rag");
95 EntityAI s =
m_Owner.GetInventory().CreateInInventory(
"TacticalShirt_Grey");
96 m_Entity2 = s.GetInventory().CreateEntityInCargo(
"Roadflare");
97 m_Owner.PredictiveDropEntity(m_Entity2);
100 override void OnUpdate (
float dt)