i'm creating a shockwave type spell where you click the ground but i cannot get the triggers to create units in a line to where the point im clicking is. all i can get is the unit at a fixed point. please give me a step by step um tutorial/explanation
You need a trigger and some math skills: I havent tested this so it might not work but:
Unit - Create 1 Footman for Player 1 (Red) at ((Point(((X of (Position of (Casting unit))) / 10.00), ((Y of (Position of (Casting unit))) / 10.00))) offset by 10.00 towards (Angle from (Position of (Casting unit)) to (Position of (Last created unit))) degrees) facing Default building facing degrees
Yeah. That should create a unit 1/10 of the distance between points. Or it might not work. No idea .
ModelerYou need a trigger and some math skills: I havent tested this so it might not work but: Code:
Unit - Create 1 Footman for Player 1 (Red) at ((Point(((X of (Position of (Casting unit))) / 10.00), ((Y of (Position of (Casting unit))) / 10.00))) offset by 10.00 towards (Angle from (Position of (Casting unit)) to (Position of (Last created unit))) degrees) facing Default building facing degrees
Yeah. That should create a unit 1/10 of the distance between points. Or it might not work. No idea .
that might work... i usually use circles to do thisa (thx to Daelin ) if modeler's way didnt work i will post my way...
Maybe one day I will bother only to make a tutorial which explains the power of PolarProjection in depth. It's one of the best functions Blizzard could've made.
nope sorry i don't understand how modeler does it ( im stupid and a newbie at triggering) can you make it somehow easier to understand? like say exactly what unit part of triggering it is? like generic unit event etc.