- Joined
- Feb 28, 2007
- Messages
- 3,479
Hello THW. My problem of today concerns the action that creates a unit. My current code lies just below:
As you can see, if the casting (red arrow) is facing upwards, the created unit is spawned in front of him, in this case north of him, and facing north just as him. If the casting unit is facing right, the second unit is created to the east of him and so on. I wonder if this is somehow possible, thanks. Also, if you did not quite understand my problem, here is an example of how it is now and shouldn't be.
Thanks in advance, and thanks for taking your time to read this, hopefully you can come up with a soft solution to my problem.
- Unit - Create 1 MyUnit for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Facing of (Casting unit)) degrees
As you can see, if the casting (red arrow) is facing upwards, the created unit is spawned in front of him, in this case north of him, and facing north just as him. If the casting unit is facing right, the second unit is created to the east of him and so on. I wonder if this is somehow possible, thanks. Also, if you did not quite understand my problem, here is an example of how it is now and shouldn't be.
Thanks in advance, and thanks for taking your time to read this, hopefully you can come up with a soft solution to my problem.