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
Amnesia script help!
theodorg Offline
Junior Member

Posts: 44
Threads: 11
Joined: Aug 2013
Reputation: 0
#33
Smile  RE: Amnesia script help!

(03-22-2014, 02:45 AM)Mudbill Wrote: Remove the wall? What about SetEntityActive with false?

Oh yes of course! Sry im new to this and thanks so much!Big Grin

(03-22-2014, 02:45 AM)Mudbill Wrote: Remove the wall? What about SetEntityActive with false?

I did as you said but it dosen't work. The wall spawn but never goes away.
This is the script:
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "Awesome_key", "Awesome_door", "ABC", true);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
AddUseItemCallback("", "secret_key", "secret_door", "SECRET", true);
AddEntityCollideCallback("Player", "servant_grunt_1", "MonsterAway", true, 1);
}

void ABC(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked( "Awesome_door", false, true);
PlaySoundAtEntity("", "unlock_door", "Awesome_door", 0, false);
RemoveItem("Awesome_key");
}

void SECRET(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked( "secret_door", false, true);
PlaySoundAtEntity("", "unlock_door", "secret_door", 0, false);
RemoveItem("secret_key");
}

void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
SetEntityActive("popup_wall_1", true);
}

void MonsterAway(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("popup_wall_1", false);
}
(This post was last modified: 03-22-2014, 05:28 PM by theodorg.)
03-22-2014, 05:16 PM
Find


Messages In This Thread
Amnesia script help! - by theodorg - 08-21-2013, 07:03 PM
RE: Amnesia script help! - by Mudbill - 03-21-2014, 11:32 PM
RE: Amnesia script help! - by theodorg - 03-21-2014, 11:36 PM
RE: Amnesia script help! - by Vale - 03-22-2014, 12:39 AM
RE: Amnesia script help! - by theodorg - 03-22-2014, 01:23 AM
RE: Amnesia script help! - by Mudbill - 03-22-2014, 12:43 AM
RE: Amnesia script help! - by Mudbill - 03-22-2014, 02:45 AM
RE: Amnesia script help! - by theodorg - 03-22-2014, 05:16 PM
RE: Amnesia script help! - by Mudbill - 03-22-2014, 07:02 PM
RE: Amnesia script help! - by theodorg - 03-23-2014, 12:16 AM
RE: Amnesia script help! - by Romulator - 03-23-2014, 12:57 AM
RE: Amnesia script help! - by Mudbill - 03-23-2014, 12:59 AM
RE: Amnesia script help! - by Traggey - 08-21-2013, 07:42 PM
RE: Amnesia script help! - by The chaser - 08-21-2013, 07:49 PM
RE: Amnesia script help! - by theodorg - 08-21-2013, 08:23 PM
RE: Amnesia script help! - by The chaser - 08-21-2013, 10:24 PM
RE: Amnesia script help! - by theodorg - 08-22-2013, 03:38 PM
RE: Amnesia script help! - by PutraenusAlivius - 08-22-2013, 04:12 PM
RE: Amnesia script help! - by theodorg - 08-22-2013, 06:09 PM
Amnesia script help! - by theodorg - 08-23-2013, 03:49 PM
RE: Amnesia script help! - by Neelke - 08-23-2013, 04:06 PM
RE: Amnesia script help! - by Traggey - 08-23-2013, 04:17 PM
RE: Amnesia script help! - by Adrianis - 08-23-2013, 04:36 PM
RE: Amnesia script help! - by theodorg - 08-23-2013, 06:42 PM
Amnesia script help! - by theodorg - 08-23-2013, 08:14 PM
RE: Amnesia script help! - by Your Computer - 08-23-2013, 08:36 PM
RE: Amnesia script help! - by summit - 08-24-2013, 07:57 AM
Amnesia script help! - by theodorg - 08-24-2013, 10:30 AM
RE: Amnesia script help! - by The chaser - 08-24-2013, 11:00 AM
RE: Amnesia script help! - by theodorg - 08-24-2013, 11:23 AM
RE: Amnesia script help! - by PutraenusAlivius - 08-24-2013, 12:40 PM
RE: Amnesia script help! - by Traggey - 08-24-2013, 02:41 PM
Amnesia script help! - by theodorg - 03-21-2014, 07:21 PM
RE: Amnesia script help! - by Daemian - 03-21-2014, 07:29 PM
RE: Amnesia script help! - by Mudbill - 03-21-2014, 08:28 PM
RE: Amnesia script help! - by theodorg - 03-21-2014, 10:43 PM
RE: Amnesia script help! - by plutomaniac - 03-21-2014, 08:34 PM



Users browsing this thread: 1 Guest(s)