A bug in GE makes UnitInventoryLastCreated() unusable. The library definition specifies that it takes a unit parameter, but it doesn't. If you try to save your map with "Last Inventory Item Created" you will get an invalid parameter type error. The workaround I'm using for this is instead of selecting "Last Inventory Item Created" from the Function menu, I'm adding the Custom Script "UnitInventoryLastCreated()" in its place.
A bug in GE makes UnitInventoryLastCreated() unusable. The library definition specifies that it takes a unit parameter, but it doesn't. If you try to save your map with "Last Inventory Item Created" you will get an invalid parameter type error. The workaround I'm using for this is instead of selecting "Last Inventory Item Created" from the Function menu, I'm adding the Custom Script "UnitInventoryLastCreated()" in its place.
Perfect! Thanks for this fix. I was going CRAZY because it wasn't working. I figured it was a bug. +1