• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

ability shooting.. thing.. help :p

Status
Not open for further replies.
Level 11
Joined
Nov 12, 2006
Messages
765
Helloo so in my map it starts as a 1st person shooter in space bascily. Out of all my experience making maps, abilities are my weakpoint. What i specificly dont know how to do is that i want to have an ability fire a laser straight from whatever angle the ship is at, without you having to select anything. you just press "fire" and it shoots out a laser straight out and will hit whatever it encounters. any help is appreciated.
 
Level 9
Joined
Feb 19, 2006
Messages
115
Copy Impale or shock wave as a dummy spell, make it cost 0 mana, have 0 cooldown time, etc... that's your laser.

Then make a dummy unit, abilities = locust, invulnerable, dummy ability; model = none; shadow = none; HP = 10; HP regen = -1 (hold shift as you click the field to enter negatives)

Make another spell to give your unit based on Channel (type ctrl+f to find it). set the effects to whatever, disable other abilities = false, Options = Visible, Target Type = instant, Base Order ID = anything you're not using somewhere else, other things to whatever...

Add these variables in the trigger editor...
TempLoc = Point variable
AnotherTempLoc = another Point variable

Now, add this for a trigger...
  • Awesome Trigger
  • Events
    • A unit begins casting an ability
  • Conditions
    • (Ability being cast) Equal to Channel Ability
  • Actions
    • Set TempLoc = (Position of (Triggering unit))
    • Set AnotherTempLoc = (TempLoc offset by 100.00 towards (Facing of (Triggering unit)) degrees)
    • Unit - Create 1 Footman for (Owner of (Triggering unit)) at TempLoc facing AnotherTempLoc
    • Unit - Order (Last created unit) to Undead Crypt Lord - Impale AnotherTempLoc
    • Custom script: call RemoveLocation(udg_TempLoc)
    • Custom script: call RemoveLocation(udg_AnotherTempLoc)
That should work, hope this helps!
 
Level 11
Joined
Nov 12, 2006
Messages
765
okay for when im making my second ability, should it be based off Posession (channeling) because thats what comes up when i do ctrl-f and type in channel.

Edit: nevermind. i manually found the ability "channel". ill let u know how this goes.

Edit2: So its not completly working. It does 1 damage to the unit and i cannot see the projectile.


Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Fire
Actions
Set TempLoc = (Position of (Triggering unit))
Set AnotherTempLoc = (TempLoc offset by 100.00 towards (Facing of (Triggering unit)) degrees)
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at TempLoc facing AnotherTempLoc
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave AnotherTempLoc
Custom script: call RemoveLocation(udg_TempLoc)
Custom script: call RemoveLocation(udg_AnotherTempLoc)


Dummy is my dummy unit
Fire is the channel spell. and the dummy spell is based off orc tauren chiften shockwave

so am i doing somthing wrong with my triggers? or will we have to look over my abilities :/
 
Last edited:
Level 9
Joined
Feb 19, 2006
Messages
115
You don't have to cloak anything, just give the "Fire" ability to the person firing. In my map I gave the testing guy both just to make sure the dummy ability was done right, so you can just get rid of it on the caster.
 
Status
Not open for further replies.
Top