dim3 Forum

Full Version: Different projectiles- different damage
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way for an object to ignore, or change the amount of damage taken, depending on the projectile?
As an example, a regular bot person would take x damage from a bullet, a bot with armor would take none. Or, I have situations where a bunch of bots on one team group together while firing in one direction, and I need the ones in front to stop getting mowed down by their fellows.
I can see one way of faking this using the hit.projectileName and hit.damage, where if projectilename is, say, teamABullet, then it takes the damage taken and adds it back on. This seems rough though.
Gordon CSA Wrote:Is there a way for an object to ignore, or change the amount of damage taken, depending on the projectile?
As an example, a regular bot person would take x damage from a bullet, a bot with armor would take none. Or, I have situations where a bunch of bots on one team group together while firing in one direction, and I need the ones in front to stop getting mowed down by their fellows.
I can see one way of faking this using the hit.projectileName and hit.damage, where if projectilename is, say, teamABullet, then it takes the damage taken and adds it back on. This seems rough though.

That's the probably the way to do it, but you'll want to turn off damage globally (check objects that don't take damage) and then do the damage just when a projectile hits.

[>] Brian
Reference URL's