Currently in my game I'm working on an ability that does, nothing but run aTrigger and apply a passive behavior. The unit that uses it is a building that is built from a worker, now the ability WORKS if i build the structure then click the structure and use it (the ability in question), however when I order the worker to do something (in this case move) after, before, or during its being built, the ability will no longer function as intended and an error occurs.
Any ideas? if you need more information please ask.
So there's actually something else. The error has to do with the proximity of the builder. As long as the builder is RIGHT next to the building, it will deactivate/activate fine. Its only if the builder moves away from its immediate vicinity that it generates an error. Suspicious, no?
So there's actually something else. The error has to do with the proximity of the builder. As long as the builder is RIGHT next to the building, it will deactivate/activate fine. Its only if the builder moves away from its immediate vicinity that it generates an error. Suspicious, no?
I have a feeling somehow your ability is still trying to search for a target.. any chance you could attach the script and data here?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Sounds weird. What's the error you get?
"Must target a Unit"
Okay. Set the "Apply behavior" effect's unit field as "Source", not "Target". There is no target unit if it's an Effect-Instant ability.
@StragusMapster: Go
So there's actually something else. The error has to do with the proximity of the builder. As long as the builder is RIGHT next to the building, it will deactivate/activate fine. Its only if the builder moves away from its immediate vicinity that it generates an error. Suspicious, no?
I have a feeling somehow your ability is still trying to search for a target.. any chance you could attach the script and data here?