Profile image

Help with funky trees codes?

4,193 FoxDynamicsWeapons  4.2 years ago

I am building a sam battery what i want is that the when I hold the fire weapons buttons the missile silo opens the missile launches and the bay closes but in case of multiple missiles I dont want all the silos to open I only want the silo of the missile that I have selected to open can some one tell me what type of selectedweaponname should I use ?
Example: sam battery has 4 missiles SAM 1,SAM2,SAM 3, SAM 4, what i want is when I select SAM 1 and hold the fireweapons button I want the SAM 1 silo to open the missile to fire and the silo to close once the missile is fired

  • Log in to leave a comment
  • Profile image

    @rexzion thanks,also checkout my builds I make custom missiles and precision guided bombs

    4.2 years ago
  • Profile image
    44.3k rexzion

    @Bombsmithfurry67 yes but make sure selectedWeaponName is written like i did

    4.2 years ago
  • Profile image

    @rexzion ok so incase of a cleaver i write selectedweaponname="cleaver" am I right

    4.2 years ago
  • Profile image
    44.3k rexzion

    basically selectedWeaponName="weaponname"
    include the quotation marks

    4.2 years ago
  • Profile image
    44.3k rexzion

    @Bombsmithfurry67 these thingies "

    4.2 years ago
  • Profile image

    @rexzion what do I replace quot with

    4.2 years ago
  • Profile image
    44.3k rexzion

    selectedWeaponName="SAM 1" put that on a rotator and it should do something

    4.2 years ago
  • Profile image

    @Heavy_Mause @Bombsmithfurry67 The math functions allow for this sort of thing but I'm not familiar with them. Have you read through Snowflakeos' guide?

    4.2 years ago
  • Profile image

    @Heavy_Mause yes it is

    4.2 years ago