• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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