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
HELP ME! ERROR IN AMNESIA!
Wapez Offline
Senior Member

Posts: 360
Threads: 37
Joined: Mar 2012
Reputation: 19
#1
HELP ME! ERROR IN AMNESIA!


Hi I have 2 problems... when i unlock door_1 with key_1, door_2 is unlocked too. The other problem is that the explosion doesn't work. Please help.


//===========================================
// Starter's Script File!
//===========================================

//===========================================
// This runs when the map first starts
void OnStart()
{
AddUseItemCallback("", "key_1", "door_1", "UsedKeyOnDoor", true);
SetEntityPlayerInteractCallback("door_3", "doorexplode", true);
AddUseItemCallback("", "key_2", "door_2", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in item, string &in door)
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0, false);
RemoveItem("key_1");

SetSwingDoorLocked("door_2", false, true);
PlaySoundAtEntity("", "unlock_door", "door_2", 0, false);
RemoveItem("key_2");
}

void doorexplode(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("door_3", 0.0f);


PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);


PlaySoundAtEntity("", "react_scare", "Player", 0, false);


PlaySoundAtEntity("", "explosion_rock_large.snt", "Player", 0, false);


GiveSanityDamage(5.0f, true);
}

//===========================================
// This runs when the player enters the map
void OnEnter()
{
}
//===========================================
// This runs when the player leaves the map
void OnLeave()
{
}

Founder & Legally Accountable Publisher of Red Line Games.
Environment & Gameplay Designer and Scripter.
http://moddb.com/mods/in-lucys-eyes
(This post was last modified: 03-29-2012, 02:37 PM by Wapez.)
03-29-2012, 01:53 PM
Find


Messages In This Thread
HELP ME! ERROR IN AMNESIA! - by Wapez - 03-29-2012, 01:53 PM
RE: HELP ME! ERROR IN AMNESIA! - by flamez3 - 03-29-2012, 02:18 PM



Users browsing this thread: 1 Guest(s)