UnitDropItemPoint

Parameters
whichUnit unit

Target unit.

whichItem item

Handle to item instance.

x real

X map coordinate.

y real

Y map coordinate.

comment

Issues an immediate order for the unit to go to point (x,y) and drop the item there.

If the unit cannot reach the point, it will run up to closest location and stop there, without dropping the item.

Returns:

  • true if item was found in inventory of unit and an order was issued.
  • false if unit/item invalid, unit is paused and cannot take orders etc.
note

See: UnitDropItemSlot, UnitDropItemTarget.

patch

1.17a

Source
common.j
return type
boolean
Source code
native          UnitDropItemPoint       takes unit whichUnit, item whichItem, real x, real y returns boolean