• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

HIVE

Uncle
Uncle
You can try using coordinates:
  • Custom script: call SetItemPosition(i, x, y)
SetUnitX and SetUnitY seem to work for this.
deepstrasz
deepstrasz
Items are removed from the game if they for instance drop from a dying boat.
Moving it on a deep water patch after being created on proper ground with the Move Item action just puts it on the nearest land.

Anyways, can't make the custom script work for some reason. It gives me JASS errors.

  • Item - Create Crown of Kings +5 at (Center of FjordsRestrictionZone <gen>)
  • Set BloodElfBoatRepairKit = (Last created item)
  • Set SapphironRageAttackPoint = (Center of FjordsChillingBreezeRendezvous01 <gen>)
  • Custom script: call SetItemPosition( udg_BloodElfBoatRepairKit, udg_SapphironRageAttackPoint, udg_SapphironRageAttackPoint))
Even tried with this like for units and nothing:
  • Custom script: call SetItemPosition( udg_BloodElfBoatRepairKit, GetLocationX(udg_SapphironRageAttackPoint))
Uncle
Uncle
You were close with the second attempt, you just forgot to provide the Y coordinate.

It takes an Item -> BloodElfBoatRepairKit, an X coordinate -> GetLocationX(...), and a Y coordinate -> GetLocationY(...)
  • Custom script: call SetItemPosition( udg_BloodElfBoatRepairKit, GetLocationX(udg_SapphironRageAttackPoint), GetLocationY(udg_SapphironRageAttackPoint) )
Shorter variable names would be nice here.
deepstrasz
deepstrasz
Thanks. The map saved but the item just doesn't show anywhere after it's moved. It's not because I'm using the same point for X and Y. I tried different points for each and the same happens. Tested on land by the way, not on water.
Top