View Full Version : Store-script questions

Ferc Kast
12-15-2007, 09:58 AM
I developed a script to open a store, but when I use it only the PC can open the store. That leads me to my question.
What, in the following script, would I change to make sure only Bao-Dur could spawn the store indicated?

void main() {
object oStore = GetObjectByTag("bao_robes");

if (!GetIsObjectValid(oStore))
oStore = CreateObject(OBJECT_TYPE_STORE, "bao_robes", GetLocation(OBJECT_SELF));

if (GetIsObjectValid(oStore))
DelayCommand(0.5, OpenStore(oStore, GetPCSpeaker()));

Thanks in advance. http://www.boardzero.com/kotormods/images/smiles/icon_mrgreen.gif