I'm trying to create kind of a "grappling hook" using the tentacle effect, but it doesn't directly target a unit, instead it targets a point and fires a missle towards that point.
The "missle" unit has a behavior that searches the area around it constantly for a target. I can get it to detect collision with a unit and the unit reacts to the hook "hitting" them. Everything looks perfect, the tentacle extends to the target point and then retracts (think Pudge's meat hook from DotA).
Basically I need to know how to make the tentacle suddenly latch onto the target of the search effect thats tied to the missle.
The next step now is to make the hook latch onto the affected target and stay hooked to them much like the neural parasite effect. How might I achieve this?
Do you have a physics engine implemented with triggers, or are you using the native collision detection? I will assume the latter. In that case, I am not sure of the best method, but a couple options are: 1) look in to 'attachment points' (sorry I haven't used them yet so I'm ignorant), 2) create a looping trigger or behavior for the latched unit which constantly updates it's position to be the same as the tentacle position.
Option 1 is probably your best bet as I think it's designed for this sort of thing.
Missiles cannot target ground and latch on, they instantly return.
You need to use a reference set actor event to attach the attachment part of your tentacle actor to the target unit like the neural parasite does on impact. Uour missile has a buff that searches for the target and the missile actor then reattaches the attachment tentacle from self to the target of the effect.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I'm trying to create kind of a "grappling hook" using the tentacle effect, but it doesn't directly target a unit, instead it targets a point and fires a missle towards that point.
The "missle" unit has a behavior that searches the area around it constantly for a target. I can get it to detect collision with a unit and the unit reacts to the hook "hitting" them. Everything looks perfect, the tentacle extends to the target point and then retracts (think Pudge's meat hook from DotA).
Basically I need to know how to make the tentacle suddenly latch onto the target of the search effect thats tied to the missle.
The next step now is to make the hook latch onto the affected target and stay hooked to them much like the neural parasite effect. How might I achieve this?
@Mephs: Go
Do you have a physics engine implemented with triggers, or are you using the native collision detection? I will assume the latter. In that case, I am not sure of the best method, but a couple options are: 1) look in to 'attachment points' (sorry I haven't used them yet so I'm ignorant), 2) create a looping trigger or behavior for the latched unit which constantly updates it's position to be the same as the tentacle position.
Option 1 is probably your best bet as I think it's designed for this sort of thing.
Missiles cannot target ground and latch on, they instantly return.
You need to use a reference set actor event to attach the attachment part of your tentacle actor to the target unit like the neural parasite does on impact. Uour missile has a buff that searches for the target and the missile actor then reattaches the attachment tentacle from self to the target of the effect.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg