l-hate_you
New Member
- Reaction score
- 6
For my airplane map (similar to battleships but first person with planes and arrow key movement+different weapon system) I made a B17 bomber that is supposed to drop bombs. They work perfectly fine and do damage and everything. However, they do not "fall" like they are supposed to.. they are based off of Footman with locust, movement type flying, and fly height/fly min both set to 1000 (same height as planes). This is the trigger for the bomb falling...
Drop Bomb 1
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Drop Bombs
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Charges remaining in (Item carried by (Casting unit) of type Bombs)) Less than or equal to 0
Then - Actions
Else - Actions
Set TempPoint = (Position of (Casting unit))
Unit - Create 1 Bomb for (Owner of (Casting unit)) at TempPoint facing Default building facing degrees
Unit - Add Storm Crow Form to (Last created unit)
Unit - Remove Storm Crow Form from (Last created unit)
Animation - Change (Last created unit) flying height to 100.00 at 1000.00
Item - Set charges remaining in (Item carried by (Casting unit) of type Bombs) to ((Charges remaining in (Item carried by (Casting unit) of type Bombs)) - 1)
Custom script: call RemoveLocation(udg_TempPoint)
Unit - Order (Casting unit) to Stop
Unit - Order (Casting unit) to Move To ((Position of (Casting unit)) offset by 256.00 towards (Facing of (Casting unit)) degrees)
why the heck won't it work!?
Drop Bomb 1
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Drop Bombs
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Charges remaining in (Item carried by (Casting unit) of type Bombs)) Less than or equal to 0
Then - Actions
Else - Actions
Set TempPoint = (Position of (Casting unit))
Unit - Create 1 Bomb for (Owner of (Casting unit)) at TempPoint facing Default building facing degrees
Unit - Add Storm Crow Form to (Last created unit)
Unit - Remove Storm Crow Form from (Last created unit)
Animation - Change (Last created unit) flying height to 100.00 at 1000.00
Item - Set charges remaining in (Item carried by (Casting unit) of type Bombs) to ((Charges remaining in (Item carried by (Casting unit) of type Bombs)) - 1)
Custom script: call RemoveLocation(udg_TempPoint)
Unit - Order (Casting unit) to Stop
Unit - Order (Casting unit) to Move To ((Position of (Casting unit)) offset by 256.00 towards (Facing of (Casting unit)) degrees)
why the heck won't it work!?