• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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

Level 12
Joined
Aug 3, 2021
Messages
453
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.
 
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
 
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.
 
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.
 
Back
Top