You could use a if which checks the hint before, because all zombie "buyable" doors hints begin with: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 ); } }
default_buy_debris
Yeahproblem is that unbuyable doors such as doors opened with turbine say buy door for "value"
how do I fix this?
This is not correct you can't do it like this. I will look into it later.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 );
}
}
Thread is old and closed, make a new one.bumpppp