| 07-16-2004, 12:31 PM | #1 |
Hi i want to make an custom flame strike abbiltie. If an Bloodmage cast the flame strike abbiltie i wan to see an arrow flying to the area where the spell is casting. I dont know how i make it plzz help me. btw you get an credit in my map if you help me ![]() |
| 07-16-2004, 12:59 PM | #2 |
You must give him the "Sphere" ability and change there some in the Grafic Layer. |
| 07-16-2004, 01:13 PM | #3 |
The easiset way would be to make a unit attack; for that, of course, you need a unit. So, just make a new unit, based on anything you like, and then change the following things: Abilities - Normal -> add the unit ability called "locust" (or aloc) Art - Model file -> change to unit - zone indicator(custom campaign) (you can use any other invisible model) Art - Shadow image (unit) -> change to NONE Movement - type -> set this to "Fly" Combat - Attack 1 - weapon type -> change to "artillery" Combat - Attack 1 - Area of effect targets -> set this to "none" Combat - Attack 1 - Projectile art -> change this to an arrow model Combat - Attack 1 - Projectile speed -> change this to how fast you want the arrow to fly Combat - Attack 1 - Projectile Arc -> this is the arc of the projectile, 0 is a straight line Combat - attacks enabled -> attack 1 only Now, what you have is a unit that is completely invisible and unselectable and you can use this unit to make the arrow appear. Here's how: Code:
Events: A unit starts the effect of an ability Conditions: Ability being cast equal to ModifiedFlamestrike Actions: Set tempPoint = position of unit - casting unit unit - create one (arrow unit) at (tempPoint) for neutral hostile unit - add a 0.5 second generic expiration timer to (last created unit) Custom script: call RemoveLocation ( udg_tempPoint ) set tempPoint = event response - target point of ability being cast unit - issue order to (last created unit) to (attack ground) tempPoint Custom script: call RemoveLocation ( udg_tempPoint ) If you wish to change the size of the arrow, then change the "art - scaling value" of the arrow shooting unit and set the "art - scale projectiles" to true. |
| 07-16-2004, 01:21 PM | #4 |
And if you still don't understand it, check out www.elilz.com He has a demo map that demonstrates this. |
| 07-16-2004, 03:14 PM | #5 |
i want to change the spell not the unit!!! i dont want to chanche the attack of the bloodmage!! look this is what i mean you have an bloodmage you click on the flame strike abbiltie you get an circle on the ground to point where the spell must be cast then you see an arrow that bloodmage shoots then you see the flamestrike the arrrow is an part of the spell so the attack is the same as the normal bloodmage |
| 07-16-2004, 03:18 PM | #6 | |
Quote:
|
| 07-16-2004, 04:44 PM | #7 |
However I heard that giving locust (Aloc) to a unit doesnt allow it to receive commands, even from triggers. |
| 07-16-2004, 07:11 PM | #8 |
No, it can still get commands from triggers, theoretically from players, too, but since you can't select the unit when it has the ability you also cant give it orders... I use that many times for my map... |
| 07-17-2004, 07:17 AM | #9 |
I really don't now how i make that triggers for my flame strike abbilty, because i'm an really big noob with triggers. Can you make an map with the trigger in it, so i can use it in my map than you get the full credit in my map. thx by the way for helping me :D |
