hadoumastery Posted August 4, 2011 Author Share Posted August 4, 2011 I want the box only to give the item to the medic class. Link to comment Share on other sites More sharing options...
Glenstorm Posted August 4, 2011 Share Posted August 4, 2011 I want the box only to give the item to the medic class. In that case simply replace the line after Player.HasPerk..... with MedicGunContainer.Enable where MedicGunContainer is the reference id and it is initially disabled. Link to comment Share on other sites More sharing options...
hadoumastery Posted August 4, 2011 Author Share Posted August 4, 2011 I want the box only to give the item to the medic class. In that case simply replace the line after Player.HasPerk..... with MedicGunContainer.Enable where MedicGunContainer is the reference id and it is initially disabled.Ah, that solves it! Thanks again! So I have... scn PerkItemScript BEGIN GameMode If Player.HasPerk TF2Medic MedicGunContainer.Enable Player.Additem MedicGun 1 RemoveMe (I added this line myself in order to remove the box) endifEND Link to comment Share on other sites More sharing options...
Glenstorm Posted August 4, 2011 Share Posted August 4, 2011 I want the box only to give the item to the medic class. In that case simply replace the line after Player.HasPerk..... with MedicGunContainer.Enable where MedicGunContainer is the reference id and it is initially disabled.Ah, that solves it! Thanks again! So I have... scn PerkItemScript BEGIN GameMode If Player.HasPerk TF2Medic MedicGunContainer.Enable Player.Additem MedicGun 1 RemoveMe (I added this line myself in order to remove the box) endifEND Erm.. I don't see how that will work. But if it works then it doesn't matter. Link to comment Share on other sites More sharing options...
hadoumastery Posted August 4, 2011 Author Share Posted August 4, 2011 I am a nub with scripting lol. I kinda go based on vanilla scripts if I ever do any scripting usually. Link to comment Share on other sites More sharing options...
Recommended Posts