Profile image

Activate Detacher with FireWeapons?

92 MikeL32  2.5 years ago

Is there a way to activate a Detacher when a specific weapon is fired? I cannot get it to work properly.

For example if I set the Activation Group to (SelectWeapon = "Weapon 1") it works just fine.

If I set the Activation Group to (FireWeapons) it also works just fine.

However, if I set the Activation Group to (FireWeapons = "Weapon 1") it no longer works.

I'm trying to make a missile launcher system that blows off each individual door on missile launch. I don't want to the door to be on the same detacher as the missile either.

  • Log in to leave a comment
  • Profile image
    Dev WNP78

    An alternative format of this could be

    FireWeapons & SelectedWeapon = "Weapon 1"

    (using a logical AND operator)

    +1 2.5 years ago
  • Profile image

    @MikeL32 Awesome! Glad I was able to help!

    +2 2.5 years ago
  • Profile image
    92 MikeL32

    @HuskyDynamics01 I got it to work! Thanks for the help.

    I had to modify it slightly. The script that worked was:

    ((SelectedWeapon = "Weapon 1") ? FireWeapons : -1)

    Note that it was SelectedWeapon as well, that was my mistake.

    +2 2.5 years ago
  • Profile image

    Try something like ((SelectWeapon = Weapon 1) ? FireWeapons : 0).

    That should make it so that if Weapon 1 is selected, the door will be blown off when it is fired.

    +2 2.5 years ago