Jump to content

Home

Store-script questions


Ferc Kast

Recommended Posts

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. icon_mrgreen.gif

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...