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

A few quick questions

Status
Not open for further replies.
Level 5
Joined
Sep 27, 2011
Messages
141
1: Does hiding a destructible using getlocalplayer cause desyncs if the destructible cannot be interacted with e.g. does not move and cannot be selected by anyone

2: Does selecting an item group create a leak if so how would i fix it

Thanks to anyone who can answer my questions.
 
Level 5
Joined
Sep 27, 2011
Messages
141
Sorry i have another question as well does anyone know how to detect weather it is ranged/melee or spell damage with Bribe's Damage Engine im still not quite sure how it works.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
I am pretty sure it is just a matter of pathing as Tirlitti said. It definitely won't desync right away. In fact, you can just move the ShowDestructable into the block. (no need for boolean variable) I've tried it with destructables for full screen systems and it works 100% but for destructables with pathing idk. I haven't tried it.
I believe this answers your first question (it will not desync if you don't use pathing).

No, item groups do not leak. There is no variable type for item groups and as Dr Super Good wisely said: "Something that does not exist cannot produce side effects of existing".

For your third question, I believe the only way to do that is by triggering everything.
Triggering spells seems logical: when a spell is about to deal damage, change a variable so the damage detection says the source is a spell.
For Melee, do the same but then when a melee unit is ordered to attack (this can be abused!).
If it is not one of those 2, it must be ranged.
 
Level 5
Joined
Sep 27, 2011
Messages
141
Thanks i might try your third idea and as for the second one the reason i thought it could leak is i didn't know if there was a bj_wantDestroyGroup for it like unit groups where you do not need to set a variable. So thanks ill probably end up needing more help the system I'm trying to make uses a lot of things i have never done before.
 
Status
Not open for further replies.
Top