i hope someone can help me out with this, i need a script that will create an item in the inventorry of a placeable, i would like the item to be there everytime it is opened. what i am am doing is putting a corpes on the floor and i would like a stake in it's inventory that you will use to kill a vampire. (yeah, you guessed it i pinched the vampire from hords) but i would like the stake to be here everytime it is opened.
thank you all for the help.
Psyammy
Killing vampires
Débuté par
Psyammy
, juil. 23 2010 03:03
#1
Posté 23 juillet 2010 - 03:03
#2
Posté 23 juillet 2010 - 04:38
I don't know how the new boards work so this won't be in a fancy script box but...
void main()
{
CreateItemOnObject("resrefofwoodenstakegoeshere", OBJECT_SELF);
}
Put that on the OnOpen event of the corpse. Make sure the Has Inventory box is checked. Make the corpse plot, too.
void main()
{
CreateItemOnObject("resrefofwoodenstakegoeshere", OBJECT_SELF);
}
Put that on the OnOpen event of the corpse. Make sure the Has Inventory box is checked. Make the corpse plot, too.
#3
Posté 23 juillet 2010 - 05:32
thank you very much, it works great!
Psyammy
Psyammy





Retour en haut






