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

hero selection ability

Status
Not open for further replies.
Level 7
Joined
Jan 30, 2011
Messages
267
in my map there is supposed to be a circle of neutral-owned heroes
all human players have shared control with neutral player so they can see the heroes abilities
now every hero will have another ability that allows the player to pick that hero
but now functions like GetTriggerPlayer dont return the actually order issuing player, but the owner of the unit, which is Player(15)

i had 1 idea to solve this:
create 1 selection ability for each player, add all 8 abilites (because there are 8 human players) to each of the selectable heroes
disable the other 7 abilities locally for Player(15), so that each player can see only 1 ability
the problem is, that i dont know if SetPlayerAbilityAvailable is synchronized or not and i have no second computer to test if it causes desync

does anyone know if its synchronized or does anyone have another idea to solve this?
 
Level 7
Joined
Jan 30, 2011
Messages
267
ok thx for testing that ;)
what happens if you put the abilities into spellbooks and disable the spellbooks instead?
afaik a unit can be ordered to use an ability inside a disabled spellbook but not a disabled ability, which might be the reason for the desync
would be cool if you could test that too ;)
 
Status
Not open for further replies.
Top