| 01-06-2007, 02:52 PM | #1 |
Hi all, I am testing a collision missile and for some reason the unit model for the spell does not show up. The spell triggers and the collision is detected but no matter what I do the spell model doesn't show. Is it a code problem or is there some setting on my channel ability that I have to fix out? ps. by the way collisionmissile_create is part of vexorian's cscaster if that helps.. JASS:function A_Missile_Actions takes nothing returns nothing local unit u = GetTriggerUnit() local unit missileunit local location loc = GetSpellTargetLoc() local real unitx = GetUnitX(u) local real unity = GetUnitY(u) local real facing=Atan2BJ(-unity+GetLocationY(loc) ,-unitx+GetLocationX(loc)) local real speed = 500 call RemoveLocation(loc) call SetUnitAnimation(u, "attack" ) set missileunit = CollisionMissile_Create("Abilities\\Weapons\\Mortar\\MortarMissile.mdl", unitx, unity, facing, speed, 0, 30000, 100, true, 100, function A_Missile_Impact) call SetUnitScale(missileunit,100,100,100) set loc=null set u=null set missileunit = null endfunction |
| 01-06-2007, 02:55 PM | #2 |
100. of scale is such a massive quantity |
| 01-08-2007, 12:21 AM | #3 |
i tried setting the scale to 1 but it still no model comes out. is it because i set my channel aility to point target? should i change it to instant cast or something... |
| 01-08-2007, 01:05 AM | #4 |
Did you copy the caster unit to the map correctly? More importantly, did you import the dummy model from the caster system? The base skill has nothing to do with this BTW. |
| 01-08-2007, 06:54 AM | #5 |
omg.. yes. it was the dummy model. i hadn't copied it into this version of the map. it really works now... thanks a million. if i could i'd kiss you:0 i'm sorry i made such a stupid mistake. |
