(04-24-2014, 12:22 AM)Mudbill Wrote: You do not modify the parameters in a constructor. Leave those as they are and only modify the calls to the different functions within your block.
I think the parameters you need here are (string &in asEntity, string &in Type).
Also change the callback in OnStart to include "prestige" in both, rather than "prestige1" in the second.
So i tried this
Quote:void prestige1(string &in asEntity, string &in Type)
{
PlayGuiSound("Prestige.ogg", 1);
}
void OnStart()
{
SetEntityCallbackFunc("prestige", "prestige");
}
The error disappeared but nothing happens when i'm picking up the note.. the script should know that the note is meaned, because the callbackfunc in the editor is named as "prestige"