- Joined
- Sep 3, 2006
- Messages
- 940
I'm making a random distance and rotation System for Catapults(probably other things, too...) and have made this code for the Attack ability(Yes, I have a custom dummy-ability for that.) It's supposed to make it attack at a random distance infront of itself, but instead it just moves a little around, looking really wierd.
Here's the code:
Here's the code:
-
Attack
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Forward Attack
-
Actions
- Unit - Order (Triggering unit) to Attack Ground ((Position of (Triggering unit)) offset by (Random real number between 300.00 and 2000.00) towards (Facing of (Triggering unit)) degrees)
-
Events