Outdated This script applies to all doors, how do I make it only apply to doors you can buy to open

Discussion in 'Call of Duty: Black Ops 2 Answered Questions' started by jcal147, Jul 23, 2016.

  1. jcal147

    jcal147 Active Member

    63
    12
    118
    Credits:
    40
    Code:
    Doorvalues(value)
    {
        foreach( door in getentarray( "zombie_door", "targetname" ) )
        {
            door.zombie_cost = value;
            door thread maps/mp/zombies/_zm_utility::set_hint_string( door, "default_buy_door", value );
        }
    }
     
  2. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,009
    2,610
    403
    Credits:
    171,800
    You could use a if which checks the hint before, because all zombie "buyable" doors hints begin with:
    Code:
    default_buy_debris
     
  3. jcal147

    jcal147 Active Member

    63
    12
    118
    Credits:
    40
    thank you :smile:
     
  4. jcal147

    jcal147 Active Member

    63
    12
    118
    Credits:
    40
    DoorDebrisvalues(value)
    {
    foreach( door in getentarray( "zombie_door", "targetname" ) )
    {
    door.zombie_cost = value;
    door thread maps/mp/zombies/_zm_utility::set_hint_string( door, "default_buy_door", value );
    }
    foreach( debris in getentarray( "zombie_debris", "targetname" ) )
    {
    debris.zombie_cost = value;
    debris thread maps/mp/zombies/_zm_utility::set_hint_string( debris, "default_buy_debris", value );
    }
    }
     
  5. jcal147

    jcal147 Active Member

    63
    12
    118
    Credits:
    40
    problem is that unbuyable doors such as doors opened with turbine say buy door for "value"
    how do I fix this?
     
  6. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,009
    2,610
    403
    Credits:
    171,800
    Yeah
    This is not correct you can't do it like this. :smile: I will look into it later.
     
    UnsignedGlitch likes this.
  7. jcal147

    jcal147 Active Member

    63
    12
    118
    Credits:
    40
    It works though. Just everydoor.
     
  8. UnsignedGlitch

    UnsignedGlitch #C? Donator

    126
    62
    303
    Credits:
    712
  9. candy

    candy G59 Terrorist Donator

    1,189
    778
    398
    Credits:
    6,421
    Thread is old and closed, make a new one.
     
  10. UnsignedGlitch

    UnsignedGlitch #C? Donator

    126
    62
    303
    Credits:
    712
    hahahah ^ k sis
     

Share This Page