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
#26
RE: Amnesia script help!

(03-21-2014, 08:28 PM)Mudbill Wrote: You might be able to use SetPropActiveAndFade on static objects, but I'm not sure. If not, then yes, you need to create an entity for the wall you want to use. You do that by opening the model editor, go File > Import Mesh, find the model in the static_objects folder, add a box shape around the wall, create that shape into the collision body, go Edit > User Defined Variables and set the type to Object, subtype Static. Doing so will allow you to use the SetEntityActive script on the wall itself.

After that, just save that entity in the entities folder (preferrably inside your own custom subfolder), and use it from the level editor.

I've actually got a video on just this if you need a more detailed explanation.

I followed you instructions and created an entity. But when i get in to the editor and try to activate it it just dosent show up. Heres 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);
}

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);
}
03-21-2014, 10:43 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)