• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Shockwave type spell

Status
Not open for further replies.
Level 5
Joined
Aug 6, 2004
Messages
131
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
 
Level 9
Joined
Aug 27, 2004
Messages
471
You 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 :p.
 
Level 10
Joined
Aug 8, 2004
Messages
562
Modeler said:
You 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 :p ) if modeler's way didnt work i will post my way...
 
Level 5
Joined
Aug 6, 2004
Messages
131
topic

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.
 
Status
Not open for further replies.
Top