| 02-19-2007, 06:09 AM | #2 |
Should not this line: Trigger: Unit Group - Pick every unit in (Units within 300.00 of (Position of OoSPM_Caster) matching ((((Matching unit) belongs to an enemy of (Owner of OWF_Caster)) Equal to True) and (((Matching unit) is A structure) Equal to False))) and do (Actions)In this line: Trigger: Special Effect - Create a special effect at TempPoint using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdlpAlso, you're using "Casting Unit" after a wait. Use the unit varible you declared earlier instead of "Casting Unit". Aside from that, you're leaking tons of locations, though I don't see anything jarringly wrong with the code. Start again from scratch? |
| 02-19-2007, 07:13 AM | #3 |
Maybe. AND that still doesnt explain what is causing odd jumping. Nothing in that should move the unit to anywhere other than the specified point... |
| 02-19-2007, 07:56 AM | #4 |
Can't help but notice that you decided to use the casting unit variable in a distance formula before it is set to the casting unit. If I had to venture a guess, I'd say that, assuming the variable is undeclared like I think, the distance formula would then return the distance between maybe the center of the map and the targeted unit point, instead of using the caster unit point and targeted unit point... or something similar, it is late and I don't like thinking too much. On another thought, there's also the possibility that if another unit were to cast the spell, it'd use the previous unit's distance instead of the current unit's distance. |
