I've written my own version of PWA's Meat Hook ability (as well as most of the rest of the map) in JASS and I was wondering how do-able it would be to code it in Galaxy.
Specifically I'm not sure what I would use to create the chain links. In World Editor, I used dummy custom units with the locust ability and moved them around with code. I've poked around a bit and I'm glad to see that we now have a lot more control over the attributes of such dummy units. Would such a solution be my best bet again or is there some new magic in the Galaxy editor?
I look forward to starting work on this but thought I'd check out my options before spending too much time on a sub-optimal solution.
Well, I don't really know whether there's a good way to Data script this, but using galaxy I'd suggest either using dummy units again or using actors directly.
Actors will give you the visual effect of the hooks instead of placing a unit. They're just a tad more troublesome because, I think, you have to let them face into the right direction with a seperate function and can't do it when you create it.
There are some reasons to still use dummy units - e.g. if you want all units that touch the chains take damage (in addition to grabbing one unit). That would be much more convenient using dummies.
I'm going to agree with S3rius, you would have less overhead with an actor as the base, but unless you are running out of memory or processing power, units are going to be a lot simpler (you technically should be able to do everything to an actor that you can a unit, but a lot of the behaviors will be built into a unit, and you'd have to code from scratch for an actor)
The only other idea in terms of simplicity I have is I know there's a "beam" type effect used for things like the Void Ray beam. If you can change properties of it, you would have it mostly done... but it may take you longer to figure out how to mess with it than it would coding up your custom unit chain.
@KineMorto: Go
I thought about doing that, but I don't think the chain would then curve to follow the casting unit as it walks around. It would just follow it in a straight line like beams do.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi all.
I've written my own version of PWA's Meat Hook ability (as well as most of the rest of the map) in JASS and I was wondering how do-able it would be to code it in Galaxy.
Specifically I'm not sure what I would use to create the chain links. In World Editor, I used dummy custom units with the locust ability and moved them around with code. I've poked around a bit and I'm glad to see that we now have a lot more control over the attributes of such dummy units. Would such a solution be my best bet again or is there some new magic in the Galaxy editor?
I look forward to starting work on this but thought I'd check out my options before spending too much time on a sub-optimal solution.
I'm assuming your looking for site operations?
Well, I don't really know whether there's a good way to Data script this, but using galaxy I'd suggest either using dummy units again or using actors directly.
Actors will give you the visual effect of the hooks instead of placing a unit. They're just a tad more troublesome because, I think, you have to let them face into the right direction with a seperate function and can't do it when you create it.
There are some reasons to still use dummy units - e.g. if you want all units that touch the chains take damage (in addition to grabbing one unit). That would be much more convenient using dummies.
@ST4RKiLL3R: Go Site operations?
@s3rius: Go Thanks s3rius. Dummy units it is then.
I'm going to agree with S3rius, you would have less overhead with an actor as the base, but unless you are running out of memory or processing power, units are going to be a lot simpler (you technically should be able to do everything to an actor that you can a unit, but a lot of the behaviors will be built into a unit, and you'd have to code from scratch for an actor)
The only other idea in terms of simplicity I have is I know there's a "beam" type effect used for things like the Void Ray beam. If you can change properties of it, you would have it mostly done... but it may take you longer to figure out how to mess with it than it would coding up your custom unit chain.
Use a launch missile and attach a beam to the missile that you shot. It will move the beam with the missile looking like a grappling hook.
@KineMorto: Go I thought about doing that, but I don't think the chain would then curve to follow the casting unit as it walks around. It would just follow it in a straight line like beams do.