Step D. - create new entity (LOCAL) with specified type.
@NOTE: if (!m_NewLocation || m_NewItemType.Empty) ==> this function does not create a new entity
См. определение в файле ReplaceItemWithNewLambdaBase.c строка 131
132 {
134 {
137
139 {
144 if (keep_rotation)
145 {
146 new_item.SetOrientation(
m_OldItem.GetOrientation());
147 }
148 break;
150
153 break;
154 default:
156 break;
157 }
158
159 if (LogManager.IsInventoryHFSMLogEnable())
hndDebugPrint(
"[inv] ReplaceItemWithNewLambdaBase Step D) Created new new_item=" + new_item);
160 if (new_item)
161 {
162 return new_item;
163 }
164 else
165 {
166 return null;
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181 }
182 }
183
184
185 return null;
186 }
const int ECE_OBJECT_SWAP
const int ECE_PLACE_ON_SURFACE
void hndDebugPrint(string s)
InventoryLocationType
types of Inventory Location
bool WantCreateNewEntity()
ref InventoryLocation m_NewLocation
void VerifyItemTypeBySlotType()
Перекрестные ссылки CFG_VEHICLESPATH, ECE_LOCAL, ECE_OBJECT_SWAP, ECE_PLACE_ON_SURFACE, g_Game, hndDebugPrint(), LogManager::IsInventoryHFSMLogEnable(), GameInventory::LocationCreateEntity(), GameInventory::LocationCreateLocalEntity(), m_NewItemType, m_NewLocation, m_OldItem, path, RF_NONE, VerifyItemTypeBySlotType() и WantCreateNewEntity().
Используется в Execute().