Hi all!
I want to make a Harp to play an harp sound when used.
I have my script when used with tagbased script and all.. but i have just a simple problem.
#include "x2_inc_switches"
void main()
{
int nEvent =GetUserDefinedItemEventNumber();
if(nEvent != X2_ITEM_EVENT_ACTIVATE)return;
object oPC = GetItemActivator();
object oHarp = GetItemActivated();
int n;
AssignCommand(oPC, ActionPlayAnimation(ANIMATION_FIREFORGET_VICTORY2,0.2,6.0));
DelayCommand(0.2, SetCommandable(0,oPC));
DelayCommand(15.0, SetCommandable(1,oPC));
AssignCommand(OBJECT_SELF,PlaySound("harp")); <------- here is the problem.
//the rest is not important.
Using playsound doesnt work, i have to use the name of the sound i created? or the name file sound in data folder? or what?