• 🏆 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!

[General] How to change loc by using item

Status
Not open for further replies.
So, I made this, it's not working somehow. Can you tell me how to do it? It's item that is used actively and can't be dropped or sold
  • Drop Checkpoint
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Checkpoint
    • Actions
      • Set Checkpoint_Loc = (Target point of ability being cast)
      • Unit - Move Checkpoint (Required) 0839 <gen> instantly to Checkpoint_Loc
      • Item - Remove (Item being manipulated)
 
Level 24
Joined
Aug 1, 2013
Messages
4,657
The trigger should work as intended (except a location leak) so I suggest placing a "Game - Display <text> to All players" in the actions so you will know if the trigger runs properly.

Also note that you are moving a specific unit instead of the triggering unit. (Dunno if that is intentional.)
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
Erkki2 is correct, you can't use "Target point of ability being cast" with that event.
 
Status
Not open for further replies.
Top