10-12-2012, 07:27 AM
How can i restore the sanity of the player just like happens in amnesia when you finish a puzzle a blur comes on screen and sanity is restored.
I want to add it when i click the 3 buttons.
void func5()
{
if(GetLocalVarInt("Var1") == 4)
{
/////Here what happens when all the 3 buttons are clicked vvvvvvvvvvvvv
SetSwingDoorLocked("doorman", false, false);
PlaySoundAtEntity("", "unlock_door.snt", "doorman", 0.5f, false);
//*Inset restore sanity script here*
}
}
I want to add it when i click the 3 buttons.
void func5()
{
if(GetLocalVarInt("Var1") == 4)
{
/////Here what happens when all the 3 buttons are clicked vvvvvvvvvvvvv
SetSwingDoorLocked("doorman", false, false);
PlaySoundAtEntity("", "unlock_door.snt", "doorman", 0.5f, false);
//*Inset restore sanity script here*
}
}