232 {
233 #ifdef ENABLE_LOGGING
234 if ( LogManager.IsInventoryHFSMLogEnable() )
235 {
236 Debug.InventoryHFSMLog(
"Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() ,
"n/a",
"HandActionForceSwap", e.m_Player.ToString() );
237 }
238 #endif
239 HandEventForceSwap es = HandEventForceSwap.Cast(e);
240 if (es)
241 {
242 GameInventory.LocationSwap(es.GetSrc(), es.m_Src2, es.GetDst(), es.m_Dst2);
243 e.m_Player.OnItemInHandsChanged();
244 }
245 else
246 Error(
"[hndfsm] HandActionForceSwap - this is no HandEventForceSwap");
247 }
void Error(string err)
Messagebox with error message.