Spear logic
Hi there, I'm trying to create a re-creation of Peter Jackson's King Kong game. The game had a cool piece of logic where spears you would throw at creatures would stick in place on their bodies for a short while. I figured out a way to have an object be emitted so that it stays in place with the target and even how to have it stay in place in different body parts (basically it emits a spear copy that is grouped with the body part it hits) but this requires a different emitter and different spear to be emitted for each body part. If I have multiple creatures, each with multiple target body pieces, is there a way to simplify the logic so the spear doesn't get too complicated (and thermo heavy)?
-
Just make the emitted spear not have logic on it I guess?
Or if you want it to fall off and disappear after a while, that would clean up some thermo. So as long as you're not chunking a hundred spears a minute you should be fine.
-
Yah and that was my plan. Have the emitted spear be simple and have a lmited lifetime. It's just that the spear that emits the copy has to be able to recognize the body part of the individual creature and emit the appropriately grouped spear copy. I was just trying to see if there would be a simpler way to accomplish it. You actually helped me with the initial logic a long time ago so thanks for both times!
-
Ah I see the problem. Could you do it the other way around? The body part detects it's hit by a spear (or the spear "tells" the body part it's been hit by it), and emits its own dummy spear inside its own group, something like that.
-
That could work though I'm not sure how I would get the spear to be emitted in the same place as the projectile in that case, as right now the projectile spear emits a dummy spear in the same place it is at the moment of impact.
Please sign in to leave a comment.