| 07-10-2007, 07:26 AM | #1 |
Is it possible to attach a special effect on a tree using this native: JASS:native AddSpecialEffectTarget takes string modelName, widget targetWidget, string attachPointName returns effect ??? I want to attach the Item Soul Theft on a tree but having it with the size of the tree |
| 07-10-2007, 08:28 AM | #2 |
the answer is no, destructable do not have a point for attaching effects in the first place, however u can do it in different way by: get a dummy unit with locust, add the effect using tree's model then add whatever effect you want on it it may not look nice, but thats the easiest way to do the thing |
| 07-10-2007, 12:26 PM | #3 |
Isnt there an Attach Special Effect to Destructable, or you could just use Add Special Effect To Loc (or is it point) |
| 07-11-2007, 09:44 AM | #4 | |
Quote:
I could create the Special Effect at the location of the tree, but I need to know his size to reflect in the Special Effect's size. So, how to know the size (or height) of a destructable? |
| 07-11-2007, 10:26 AM | #5 |
You don't, apparently. There is no GetDestructableScale() or GetWidgetScale(). |
| 07-11-2007, 10:54 AM | #6 | |
Quote:
Both units and destructibles are widgets, so I don't see why it shouldn't work. Attachment points are a property of the model, so if it's a unit or a destructible should be irrelevant; both can have attachment points. |
