220 {
221 #ifdef ENABLE_LOGGING
222 if ( LogManager.IsInventoryHFSMLogEnable() )
223 {
224 Debug.InventoryHFSMLog(
"Action - STS = " + e.m_Player.GetSimulationTimeStamp(), e.ToString() ,
"n/a",
"HandActionForceSwap", e.m_Player.ToString() );
225 }
226 #endif
227 HandEventForceSwap es = HandEventForceSwap.Cast(e);
228 if (es)
229 {
230 GameInventory.LocationSwap(es.GetSrc(), es.m_Src2, es.GetDst(), es.m_Dst2);
231 e.m_Player.OnItemInHandsChanged();
232 }
233 else
234 Error(
"[hndfsm] HandActionForceSwap - this is no HandEventForceSwap");
235 }
void Error(string err)
Messagebox with error message.