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

How can I change button position for raise dead only for one unit using triggers?

Level 6
Joined
Aug 3, 2021
Messages
109
Hello everybody. I was just wondering how can I change button position for Rise Dead spell for only one unit using triggers in trigger editor. Best regards form Pekisa7.
 
Level 32
Joined
Aug 29, 2012
Messages
1,466
You have these two functions since reforged

  • Ability - Set Position X of Raise Dead to 0
  • Ability - Set Position Y of Raise Dead to 2
But that probably affects everything. I suppose you can detect when this unit is selected, do the changes, and then change the positions back when it is unselected but heh...

It's probably easier to create a copy of raise dead with the position you want and add it to your unit directly
 
Level 6
Joined
Aug 3, 2021
Messages
109
You have these two functions since reforged

  • Ability - Set Position X of Raise Dead to 0
  • Ability - Set Position Y of Raise Dead to 2
But that probably affects everything. I suppose you can detect when this unit is selected, do the changes, and then change the positions back when it is unselected but heh...

It's probably easier to create a copy of raise dead with the position you want and add it to your unit directly
I know i shouldn't be replying here but to make a new thread and reply. But thank you very much. I copied raise dead trigger and raise dead abillty for other custom units of mine and it worked so thank you. Best regards from Pekisa7.
 
Level 6
Joined
Aug 3, 2021
Messages
109
If you're using LUA or JASS, you can use the natives in a local block, which will only do it for that player.

Lua:
if GetLocalPlayer() == GetEnumPlayer() then
    BlzSetAbilityPosX(abilCode, x)
    BlzSetAbilityPosY(abilCode, y)
end
I followed the other guys instructions and did it. But thanks for answering the thread and the question. Best regards form Pekisa7.
 
Top