hadoumastery Posted August 4, 2011 Author Posted August 4, 2011 I want the box only to give the item to the medic class.
Glenstorm Posted August 4, 2011 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.
hadoumastery Posted August 4, 2011 Author 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
Glenstorm Posted August 4, 2011 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.
hadoumastery Posted August 4, 2011 Author 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.
Recommended Posts