#How do I make a weapon only be able to damage a certain Team?

1 messages · Page 1 of 1 (latest)

naive yacht
#

I'd like to know how to do this, since I have a shovel in my game that breaks dirt, but I don't want the guns to break dirt too.

tough citrus
#

@naive yacht hi, this is a simple way to do this

#

When the object is damaged you can make it regenerate = to the attacker's damage if the attacker is not a certain team/actor using the if statement

agile lark
#

OR make the dirt a seperate team and it should damage just the dirt

tough citrus
#

That wouldn't work

#

Any other weapon would just damage the dirt

#

Theyre requesting that only a specific weapon should

humble tundra
#

if current weapon = xxxxx. set actor team = xxxx then from there play around how team can damage one another

naive yacht
#

Thx

naive yacht
#

Wait what if it's multiplayer

naive yacht
#

I honestly have no idea where to find these code blocks you guys are mentioning...

naive yacht
#

Ik

#

But still cant seem to find some code blocks

little fern