- Joined
- Jul 10, 2013
- Messages
- 73
I have a "hotwire" ability that allows a player to steal a car from a computer player and use it.
The player can also obtain a car through the use of building it themselves with money.
My plan for this ability was to have the player use it on a car, have the car be theres while the ability they used to get it (Hotwire) goes away until the car dies.
I have two different cars in my game, one is for the computer that doesn't move and another has movement speed and more hp.
My problem right now is that nothing happens when the ability is used.
The player can also obtain a car through the use of building it themselves with money.
My plan for this ability was to have the player use it on a car, have the car be theres while the ability they used to get it (Hotwire) goes away until the car dies.
I have two different cars in my game, one is for the computer that doesn't move and another has movement speed and more hp.
My problem right now is that nothing happens when the ability is used.
-
Hotwire
-
Events
-
Unit - A unit Finishes casting an ability
-
-
Conditions
-
(Unit-type of (Target unit of ability being cast)) Equal to Car
-
(Ability being cast) Equal to Hotwire (C) (channel)
-
-
Actions
-
Set Point = (Position of (Target unit of ability being cast))
-
Unit - Remove (Target unit of ability being cast) from the game
-
Unit - Create 1 Car (F) (Human) for (Triggering player) at Point facing Default building facing degrees
-
Special Effect - Create a special effect at Point using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Remove Hotwire (C) (channel) from (Triggering unit)
-
Custom script: call RemoveLocation(udg_Point)
-
-
-
Hotwire1
-
Events
-
Unit - A unit owned by Player 1 (Red) Dies
-
-
Conditions
-
(Unit-type of (Dying unit)) Equal to Car (F) (Human)
-
(Level of Hotwire (C) (channel) for Hero1) Greater than 0
-
-
Actions
-
Unit - Add Hotwire (C) (channel) to (Hero1)
-
-