HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Attachable Invis Model (request)

11-10-2007, 12:07 AM#1
PandaMine
I was wondering if this is possible, but does anyone know how to create a model that when attached to a unit (or placed ontop of a unit) will cause that unit to become completely invisible. The reason why I dont want to use SetUnitVertexColor/SetUnitScale is because it does not remove the shadow.

Possible alpha rendering in the model or something of the sort could be accomplished, anyone have any ideas or ways they could do it?
11-10-2007, 01:29 AM#2
Malf
Just attach a shadow model(kinda like hero glow) with an ability and remove the ability when you're using SetUnitVertexColor
11-10-2007, 05:57 AM#3
Pyrogasm
Or possibly a variation of Permanent Invisibility.
11-10-2007, 07:54 AM#4
PandaMine
It has to be a model, not an ability (including invis). @Malf would you have any idea where to get a model that will remove the shadow
11-10-2007, 08:09 AM#5
Malf
I don't know of any model that could dynamically remove shadows..

But, you can remove your unit's shadow in object editor, then make an ability that will attach a shadow model to your unit.

Then just add/remove that ability to add/remove the shadow :þ
11-10-2007, 08:57 PM#6
Jazradel
SetUnitVertexColor doesn't do particles either, which is a lot harder to work around.
11-10-2007, 09:31 PM#7
PandaMine
I think ill post this in the modelling section
11-10-2007, 09:34 PM#8
TDR
don't bother, it's impossible.
11-10-2007, 09:41 PM#9
PandaMine
I just had an idea, if it is possible to move the origin of the model then you can offset it to somewhere off the map so it would not be visible
11-10-2007, 11:51 PM#10
Malf
OR you could just totally DL a hero glow, change it's color to black, add an ability which attaches that to your unit who has no shadow, remove it when you're hiding.

:/
11-11-2007, 02:17 AM#11
PandaMine
I realise what Malf is saying, unfortunatley its hard for me to explain why I am being so fussy. I am updating my AMHS (anti map hack system) and there is a way to counter MH, however everything has to be done locally. This means that it has to be done only graphically, which means I cannot add abilities, or create units. The only way it can be done is by adding spell effects because they are graphical and dont effect gameplay
11-11-2007, 02:28 AM#12
Malf
Ah, well you didn't say it in the first place. I thought you were just ignoring me :p

Well anywho...

-DL hero glow
-Make it black so it looks like a shadow
-Attach the model to the unit through JASS
-Make sure you store the effect variable in gamecache or any other hash table so you will be able to destroy it later
-When you want to destroy the effect(aka removing the shadow) access the variable then destroy it.

Voila?
11-11-2007, 09:25 AM#13
TDR
Quote:
Originally Posted by PandaMine
I just had an idea, if it is possible to move the origin of the model then you can offset it to somewhere off the map so it would not be visible
hmm, yeah, I think that could actually work. But the model itself must be edited, you can't do it with an attachment. Let me give it a try. I'll make a set of alternate animations where it's offseted. But I think the shadow will still stay in the same spot though...
Edit: yeah, the shadow still says...
11-11-2007, 10:44 PM#14
PandaMine
The shadow must not be an attachment then, it must mean its jsut a model thats placed on the position of the unit. Would you be able to update the model TDR if its an attached one (if you just edited the model then DW about it)

Looks like ill have to do what Malf said and make an external system that will place the shadows manually
11-11-2007, 11:07 PM#15
Jazradel
You can create units locally.
Collapse JASS:
if GetLocalPlayer() == Player(0) then
    set s = 'h000'
endif
call CreateUnit(Player(0), s, 0, 0, 0)
Works fine AFAIK. Might have problems when it dies from damage though.