Yes it is
i updated my post i put down some incorrect info. Anyway i have no idea what it means by unexpected identifier.
Here is all my scripting to do with it, and the part before it =
AddUseItemCallback("", "hammer", "lever1", "switch", true);
void switch(string &in asItem, string &in asEntity)
{
AddTimer("music", 1, "TimerMusicDelay10");
GiveSanityBoost();
CompleteQuest("Quest_2", "Switch");
PlaySoundAtEntity("06_break_wood.snt", "06_break_wood.snt", "06_break_wood.snt", 0, false);
PlaySoundAtEntity("16_ladder_imp1.snt", "16_ladder_imp1.snt", "16_ladder_imp1.snt", 0, false);
SetEntityActive("castle_portcullis_1", false);
SetEntityActive("lever1", false);
SetEntityActive("lever2", true);
SetEntityActive("lever3", true);
RemoveItem("hammer");
CreateParticleSystemAtEntity("", "ps_hit_wood.ps", "ps_hit_wood.ps", false);
CreateParticleSystemAtEntity("", "ps_hit_metal.ps", "ps_hit_metal.ps", false);
}
Dont worry about how the 'adduseitemcallback' is positioned, its under onstart part and is with the rest, with } + { of course, i think i may have a spelling error but right now i cant see any, i have done this alot.
So hammer s used on Lever1, which activates switch function. So this cant be wrong?