In Inheritance: Eragon RPG I saw a situation when I couldn't shot an unit from the city despite it has normal life gauge (it was probe with 1 hp 1 shield). In World of Starcraft defensive buildings dont have HP showed (as if they were invulernable) but units can shoot to them and even crush them. How to reach such effects?
On the second matter I think it has some kind of burrowed zergling or defiler under it, to show virtual HP.
1. Setting a unit's max hp to 0 in an extended editor will usually make the unit invincible to most attacks and spells.
2. Setting the max hp or shields above 9999 will render hp and shields invisible.
QUOTE
In Inheritance: Eragon RPG I saw a situation when I couldn't shot an unit from the city despite it has normal life gauge (it was probe with 1 hp 1 shield
maybe cuz of its armor you couldnt hit it anyhow.
No! The probe has exacly 0 armor and 0 shields! It's kind of strange effect: you can see your marine firing but you don't see bullets hittting probe. It'd be best if you download this map from DLDB and see it by your own.
ADDITION:
QUOTE
1. Setting a unit's max hp to 0 in an extended editor will usually make the unit invincible to most attacks and spells.
Wow, just checked it, it works. But it's not exacly the same effect. By setting unit's hp to 0 I can see bullets hitting it while shooting to it. Besides in Inheritance the probe has 1/1 HP and using what was described above unit has 0/1 HP.
Are you constantly being set to being allied to the probe? If the bullet animation isn't appearing on the probe or near it, then the marine may not be firing in the first place.
I don't get what do you mean by "the marine may not be firing in the first place". Please Frifrat, download Inheritance:Eragon RPG map from database an see it then you'll surely have no doubtness how it looks like.
I don't know what Eragon uses.
World of Starcraft has units with hp well over 9999, that's how the buildings don't display a health but can still be fired at.
Oh, this took me too long to come up with. Try moving a unit nonstop to a non-walkable ground using "move unit" (the trick to keep them still). That makes it so they can't be attacked like normal.
Hmm, it's possible that it was used there.