How do I prevent my puppet from interfering with its own laser scope
Hey,
So I'm currently testing logic and I realized that a puppet attack animation gets in the way of its own laser scope.
See below:
During the attack, the arm of the blue puppet gets in the way of the laser and stops the signal.
After the arm is out of the way, the signal comes back
This causes many issues with my logic, and tweaking the animation doesn't change anything. I made sure the blue puppet label is not detected by the laser.
I also need the laser scope to have xray off so the puppet doesn't attack through walls.
How do you usually deal with this kind of problem?
-
I had a similar issue with a puppet triggering its own laser scopes. Since the puppet is labeled as “friend” by default, setting the scopes to detect all labels except “friend” fixed the problem. I think this would work for your situation, if you give your enemy puppet a different label of course.
As for the the wall issue, someone else may have a better suggestion - I would use a second scope that also points to the Bandit tag and looks for any obstruction (except for the “friend” label) and set the Look For Bandit scope to only activate when the second scope does NOT detect anything.
-
I did this already, the laser is only checking for foe, but it can't seem to fix the problem. I also scoped in the puppet to make sure each limb is labeled as friend and the problem persists ☹️
-
The problem is the x-ray setting.
The laser scope looks for any sculpt matching the collision and visibility settings.
- When x-ray is off and it meets one of those, it will stop.
- When x-ray is on and it meets one of those, it will only stop if the sculpt had the right label. Otherwise it'll keep going and look for more of those sculpts.
If the sculpt it stopped at has the right label, it outputs a hit.
So if you want it to go through labels that it's not looking for, turn on x-ray. This will go through stuff like walls though if you've not set it to "hit" whatever label the walls have.
-
Thanks for the replies guys
I guess I understood the laser scope wrong then.
I thought xray only allowed the laser to go through sculpts that were not selected in the label section. I thought that disabling xray would still check for labels.
I'll see what I can do once I get back into dreams, thanks!
Please sign in to leave a comment.