You need an Issue Order Effect. As far as I know, one of the flags is for Auto Cast (switch on Auto Cast). So the first ability is to have the Issue Order Effect while the second ability waits there until its Auto Cast is switched on.
It will be for players to activate but once I fugre out how to get the spell working I will be creating more then 1. So the building can spawn different units.
I assume from the Warcraft 3 engine that only 1 auto-cast spell can operate at a time.
I tried screwing around with all different options from what you suggested(I dont know how spells work) and I got the spell on the unit and found the bit that says unit produced so I put marine, Using 1 spell and 2 effects, the 2 effects are Issue Order & Switch but theres too many ways I can link all 3 together so I haven't had much luck. The marine isn't spawning.
Well technically you can just create a single Ability with an associated Spawn Unit Effect and set its Flags field so that it can be Auto Cast. I don't think there's any Auto Cast restrictions neither.
I got no idea how to create this Ability with an associated spawn unit effect... I can easily create an ability but there is so many options that I have no idea if its gonna work or not.
How about if I copy the interceptor ability, how would i change that into auto cast?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
How do I get a building to have spells that when clicked activate an auto-cast that spawns units from the building.
You need an Issue Order Effect. As far as I know, one of the flags is for Auto Cast (switch on Auto Cast). So the first ability is to have the Issue Order Effect while the second ability waits there until its Auto Cast is switched on.
Well I found what you mentioned but I cant see how they are meant to be set up so I guessed.
I also cant seem to see where it is the operation of spawning the unit goes.
I'm not sure though if you mean that you want the players to activate the auto cast or is it computer controlled.
It will be for players to activate but once I fugre out how to get the spell working I will be creating more then 1. So the building can spawn different units.
I assume from the Warcraft 3 engine that only 1 auto-cast spell can operate at a time.
I tried screwing around with all different options from what you suggested(I dont know how spells work) and I got the spell on the unit and found the bit that says unit produced so I put marine, Using 1 spell and 2 effects, the 2 effects are Issue Order & Switch but theres too many ways I can link all 3 together so I haven't had much luck. The marine isn't spawning.
@MapCrafter: Go
Well technically you can just create a single Ability with an associated Spawn Unit Effect and set its Flags field so that it can be Auto Cast. I don't think there's any Auto Cast restrictions neither.
I got no idea how to create this Ability with an associated spawn unit effect... I can easily create an ability but there is so many options that I have no idea if its gonna work or not.
How about if I copy the interceptor ability, how would i change that into auto cast?