94 {
95 Transport trans = Transport.Cast(action_data.
m_Target.GetObject());
96 bool accepted = false;
97 int currSeat = trans.CrewMemberIndex(action_data.
m_Player);
98 int nextSeat = trans.CrewPositionIndex( action_data.
m_Target.GetComponentIndex() );
99 Transport transport = Transport.Cast(action_data.
m_Target.GetObject());
100 InventoryLocation il = new InventoryLocation;
101 if (transport)
102 {
104
105
106 if (
g_Game.AddInventoryJunctureEx(action_data.
m_Player, action_data.
m_Player, il,
true, 10000, action_data))
107 {
108 accepted = true;
110 }
111
112 if(accepted)
113 {
115
116 if (
g_Game.AddInventoryJunctureEx(action_data.
m_Player, action_data.
m_Player, il,
true, 10000, action_data))
117 {
119 }
120 else
121 {
123 accepted = false;
124 }
125 }
126 }
127
128 return accepted;
129 }
void ClearActionJuncture(ActionData action_data)
ref ActionTarget m_Target
ref array< ref InventoryLocation > m_ReservedInventoryLocations
proto native void SetVehicle(notnull EntityAI parent, EntityAI e, int idx)