Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

How do I stop a child from taking the parent's tag?

$
0
0
I have an object attached to the player that is 2.4 units ahead of him, and only appears while he is running. The player's tag is 'Player', while the object's tag is 'Melee'. I have a script that tells all objects with the tag 'Enemy' to harm 'Player' tags, but get harmed by 'Melee' tags. Anyways, because my object is a child, it uses the parent's tag, 'Player'. So, rather than harming the enemy, it is harmed by the enemy. And that's not what I want. Let me know if you want my scripts, they're kinda long..

Viewing all articles
Browse latest Browse all 1488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>