Code:
void OnStart ()
{
AddEntityCollideCallback("Player", "HospitalPics", "Pics", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_1", "Picsmom", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_2", "Picsassistant", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_3", "Picsdad", true, 1);
AddEntityCollideCallback("Player", "DontGo", "DontGo", true, 1);
AddEntityCollideCallback("Player", "Mom", "Mom", true, 1);
SetEntityCallbackFunc("note_generic_1", "OnPickup");
}
void Pics(string &in asParent, string &in asChild, int alState)
{
SetMessage("Messages", "pics", 0);
StartPlayerLookAt("paintings_strange03_1", 2.0f, 2.0f, "");
}
void Picsmom(string &in asParent, string &in asChild, int alState)
{
SetMessage("Messages", "picsmom", 0);
StartPlayerLookAt("paintings_strange04_1", 2.0f, 2.0f, "");
}
void Picsassistant(string &in asParent, string &in asChild, int alState)
{
SetMessage("Messages", "picsassistant", 0);
StartPlayerLookAt("paintings_strange03_1", 2.0f, 2.0f, "");
}
void Picsdad(string &in asParent, string &in asChild, int alState)
{
SetMessage("Messages", "picsdad", 0);
StartPlayerLookAt("paintings_strange03_1", 2.0f, 2.0f, "");
}
void Picsdad(string &in asParent, string &in asChild, int alState)
{
SetMessage("Messages", "DontGo", 0);
}
void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("Mom", true);
}
void Mom(string &in asParent, string &in asChild, int alState)
{
SetMessage("Messages", "Mom", 0);
}
void OnLeave ()
{
}