The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Restore sanity
naseem142 Offline
Member

Posts: 153
Threads: 19
Joined: Oct 2012
Reputation: 0
#1
[SOLVED] Restore sanity

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*
}
}
(This post was last modified: 10-12-2012, 01:21 PM by naseem142.)
10-12-2012, 07:27 AM
Website Find


Messages In This Thread
[SOLVED] Restore sanity - by naseem142 - 10-12-2012, 07:27 AM
RE: Restore sanity - by FlawlessHappiness - 10-12-2012, 08:01 AM
RE: Restore sanity - by Ongka - 10-12-2012, 09:05 AM
RE: Restore sanity - by FlawlessHappiness - 10-12-2012, 09:41 AM
RE: Restore sanity - by naseem142 - 10-12-2012, 10:23 AM
RE: Restore sanity - by FlawlessHappiness - 10-12-2012, 10:28 AM
RE: Restore sanity - by naseem142 - 10-12-2012, 10:29 AM
RE: [SOLVED] Restore sanity - by The chaser - 10-12-2012, 02:36 PM



Users browsing this thread: 1 Guest(s)