Jump to content

Simple additem script help


hadoumastery

Recommended Posts

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

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)

endif

END

Link to comment
Share on other sites

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)

endif

END

 

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...