Jump to content
  • 0

How do I make enemies pass through some projectiles but not others?


PeceMan

Question

I'm making custom monsters, and they're all going to be pretty projectile intensive. The thing is, I don't want them to infight. There is just going to be too many projectiles on screen, and to many monsters, so a monster hitting another one is pretty much guaranteed. So I don't want the enemies taking damage from each other, or even blocking each others bullets. 

But I also want to add some projectile weapons for the player, but those SHOULD be able to collide. So I can't just make the monsters have no collision box.

 

This is probably another one of those problems with an easy solution, but I may be wrong.

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0

Give your custom monster and projectile matching species properties.

Actor MyCustomMonster 6666
{
species "MyCustomMonsterSpecies"
//etc...
}

Actor MyCustomProjectile
{
species "MyCustomMonsterSpecies"
//etc...
}

Then give the projectile the +thruspecies flag.

Actor MyCustomProjectile
{
species "MyCustomMonsterSpecies"
+thruspecies
//etc...
}

If you want the projectiles to collide with the monsters without damaging, use +donthurtspecies instead.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...