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


Thread Rating:
  • 16 Vote(s) - 4.44 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripts Recollection
Author Message
teddan50 Offline
Junior Member

Posts: 15
Threads: 2
Joined: Dec 2011
Reputation: 0
#92
RE: Scripts Recollection

(04-18-2011, 05:42 PM)nkmol Wrote: i'm trying to use the moveable_book, but it seems it doesn't work as a normal lever :S
i used this script :
void OnStart()
{
SetEntityConnectionStateChangeCallback("book_moveable_1", "BookMoved");
}

void BookMoved(string &in EntityName, int alState)
{
AddDebugMessage("book_moveable_1" + "'s current state: " + alState, false);

if(alState == 1)
{
SetPropHealth("default_broken01_1", 0);
StartScreenShake(0.07f, 0.3f, 1, 1);
SetLeverStuckState("book_moveable_1", 1, true);
}
}


even the DebugMessage doesn't work.
I don't get any error, think it has to do whith the OnStart line though. But i can't find a other script that works. And yes, i putted the callback in the level editor Big Grin




I did it like this:

void OnStart()
{
AddEntityCollideCallback("booklever_1", "ScriptArea_1", "Dooropening", true, 1);

}

void Dooropening(string &in asParent , string &in asChild , int alState)
{
SetSwingDoorLocked("mansion_1", false, false);
}



Probably not the correct method, but it worked for me. You just have to make sure that the book enters the scriptarea when you pull it out.
12-12-2011, 10:40 PM
Find


Messages In This Thread
Scripts Recollection - by Arvaga - 10-20-2010, 02:57 AM
RE: Scripts Recollection - by mastersmith98 - 10-20-2010, 05:59 AM
RE: Scripts Recollection - by Kyle - 10-20-2010, 12:01 PM
RE: Scripts Recollection - by Vincent - 10-20-2010, 01:05 PM
RE: Scripts Recollection - by Frontcannon - 10-20-2010, 02:20 PM
RE: Scripts Recollection - by mrscoomich - 03-18-2012, 05:58 PM
RE: Scripts Recollection - by mastersmith98 - 10-20-2010, 10:18 PM
RE: Scripts Recollection - by Arvaga - 10-20-2010, 11:03 PM
RE: Scripts Recollection - by Alex7754 - 10-20-2010, 11:54 PM
RE: Scripts Recollection - by Frontcannon - 10-21-2010, 01:35 AM
RE: Scripts Recollection - by The worst submarine - 10-21-2010, 02:54 AM
RE: Scripts Recollection - by mastersmith98 - 10-21-2010, 03:27 AM
RE: Scripts Recollection - by anzki - 10-21-2010, 09:23 AM
RE: Scripts Recollection - by house - 10-22-2010, 07:31 PM
RE: Scripts Recollection - by anzki - 10-23-2010, 11:07 AM
RE: Scripts Recollection - by anzki - 10-24-2010, 10:13 AM
RE: Scripts Recollection - by Everlone - 10-25-2010, 03:51 PM
RE: Scripts Recollection - by Frontcannon - 10-25-2010, 04:30 PM
RE: Scripts Recollection - by Everlone - 10-25-2010, 04:35 PM
RE: Scripts Recollection - by Frontcannon - 10-25-2010, 05:07 PM
RE: Scripts Recollection - by Everlone - 10-25-2010, 05:11 PM
RE: Scripts Recollection - by Frontcannon - 10-25-2010, 05:37 PM
RE: Scripts Recollection - by Everlone - 10-25-2010, 05:48 PM
RE: Scripts Recollection - by zlandael - 10-27-2010, 01:07 AM
RE: Scripts Recollection - by mastersmith98 - 10-27-2010, 01:55 AM
RE: Scripts Recollection - by anzki - 10-27-2010, 02:32 PM
RE: Scripts Recollection - by Arvaga - 11-11-2010, 05:29 PM
RE: Scripts Recollection - by Frontcannon - 11-11-2010, 06:05 PM
RE: Scripts Recollection - by Equil - 01-03-2011, 03:33 PM
RE: Scripts Recollection - by Frontcannon - 01-03-2011, 04:20 PM
RE: Scripts Recollection - by Equil - 01-03-2011, 04:25 PM
RE: Scripts Recollection - by Frontcannon - 01-03-2011, 04:36 PM
RE: Scripts Recollection - by Equil - 01-03-2011, 04:45 PM
RE: Scripts Recollection - by DIGI Byte - 01-04-2011, 03:28 PM
RE: Scripts Recollection - by Frontcannon - 01-04-2011, 04:35 PM
RE: Scripts Recollection - by DIGI Byte - 01-04-2011, 04:58 PM
RE: Scripts Recollection - by DIGI Byte - 01-05-2011, 02:53 AM
RE: Scripts Recollection - by DIGI Byte - 01-05-2011, 06:02 AM
RE: Scripts Recollection - by Frontcannon - 01-05-2011, 04:29 PM
RE: Scripts Recollection - by DIGI Byte - 01-05-2011, 09:30 PM
RE: Scripts Recollection - by Tony32 - 01-10-2011, 11:04 PM
RE: Scripts Recollection - by house - 01-10-2011, 11:59 PM
RE: Scripts Recollection - by Tony32 - 01-11-2011, 02:37 PM
RE: Scripts Recollection - by Frontcannon - 01-13-2011, 05:09 PM
RE: Scripts Recollection - by Tony32 - 01-13-2011, 04:21 PM
RE: Scripts Recollection - by Seragath - 01-13-2011, 04:32 PM
RE: Scripts Recollection - by Akumasama - 01-15-2011, 06:25 PM
RE: Scripts Recollection - by Frontcannon - 01-15-2011, 08:34 PM
RE: Scripts Recollection - by Akumasama - 01-18-2011, 05:51 PM
RE: Scripts Recollection - by Ianlis - 01-21-2011, 11:45 PM
RE: Scripts Recollection - by Akumasama - 01-22-2011, 01:20 AM
RE: Scripts Recollection - by Vradcly - 01-22-2011, 01:27 AM
RE: Scripts Recollection - by Ianlis - 01-22-2011, 05:42 AM
RE: Scripts Recollection - by Akumasama - 01-23-2011, 05:35 PM
RE: Scripts Recollection - by Tottel - 01-25-2011, 02:48 PM
RE: Scripts Recollection - by Beatlebattle - 01-27-2011, 07:04 PM
RE: Scripts Recollection - by Oscar House - 01-27-2011, 09:05 PM
RE: Scripts Recollection - by Beatlebattle - 01-29-2011, 12:19 AM
RE: Scripts Recollection - by adamhun - 02-07-2011, 04:47 PM
RE: Scripts Recollection - by kozek - 02-22-2011, 10:27 AM
RE: Scripts Recollection - by Nye - 02-25-2011, 01:38 AM
RE: Scripts Recollection - by kozek - 03-01-2011, 07:12 PM
RE: Scripts Recollection - by Zinnkio - 02-26-2011, 04:42 PM
RE: Scripts Recollection - by Ongka - 02-26-2011, 05:28 PM
RE: Scripts Recollection - by Zinnkio - 02-26-2011, 05:49 PM
RE: Scripts Recollection - by nkmol - 02-26-2011, 07:18 PM
RE: Scripts Recollection - by Zinnkio - 02-26-2011, 09:55 PM
RE: Scripts Recollection - by nkmol - 03-01-2011, 11:31 PM
RE: Scripts Recollection - by kozek - 03-04-2011, 05:45 PM
RE: Scripts Recollection - by Pandemoneus - 03-04-2011, 05:47 PM
RE: Scripts Recollection - by TheGreatCthulhu - 03-04-2011, 11:01 PM
RE: Scripts Recollection - by Pandemoneus - 03-05-2011, 12:16 AM
RE: Scripts Recollection - by Raymond - 03-05-2011, 08:14 AM
RE: Scripts Recollection - by Pandemoneus - 03-05-2011, 05:38 PM
RE: Scripts Recollection - by Raymond - 03-06-2011, 02:49 AM
RE: Scripts Recollection - by CrushedRaiD - 03-07-2011, 10:07 AM
RE: Scripts Recollection - by wisecow - 04-17-2011, 08:05 PM
RE: Scripts Recollection - by wisecow - 04-18-2011, 04:31 PM
RE: Scripts Recollection - by nkmol - 04-18-2011, 05:42 PM
RE: Scripts Recollection - by teddan50 - 12-12-2011, 10:40 PM
RE: Scripts Recollection - by Jahffax - 04-23-2011, 07:05 AM
RE: Scripts Recollection - by Kyle - 04-23-2011, 10:48 PM
RE: Scripts Recollection - by Jahffax - 04-24-2011, 11:36 AM
RE: Scripts Recollection - by Exostalker - 04-29-2011, 02:38 PM
RE: Scripts Recollection - by ufando - 04-24-2011, 09:56 AM
RE: Scripts Recollection - by wisecow - 06-08-2011, 02:38 PM
RE: Scripts Recollection - by laser50 - 06-17-2011, 10:25 PM
RE: Scripts Recollection - by Tanshaydar - 06-17-2011, 10:28 PM
RE: Scripts Recollection - by laser50 - 06-17-2011, 10:34 PM
RE: Scripts Recollection - by Fireintex - 11-09-2011, 12:09 AM
RE: Scripts Recollection - by Kyle - 11-09-2011, 12:52 AM
RE: Scripts Recollection - by Fireintex - 11-09-2011, 12:55 AM
RE: Scripts Recollection - by Kyle - 11-09-2011, 02:00 AM
RE: Scripts Recollection - by jessehmusic - 12-23-2011, 03:04 PM
RE: Scripts Recollection - by CorinthianMerchant - 01-12-2012, 05:26 PM
RE: Scripts Recollection - by Elven - 01-13-2012, 10:19 PM
RE: Scripts Recollection - by CorinthianMerchant - 01-15-2012, 01:09 PM
RE: Scripts Recollection - by Loveridge - 01-19-2012, 08:21 PM
RE: Scripts Recollection - by flamez3 - 01-20-2012, 02:32 AM
RE: Scripts Recollection - by Khyrpa - 01-19-2012, 08:35 PM
RE: Scripts Recollection - by CorinthianMerchant - 01-20-2012, 05:15 PM
RE: Scripts Recollection - by SilentStriker - 01-21-2012, 10:03 AM
RE: Scripts Recollection - by CorinthianMerchant - 01-21-2012, 02:29 PM
RE: Scripts Recollection - by SilentStriker - 01-21-2012, 03:20 PM
RE: Scripts Recollection - by CorinthianMerchant - 01-21-2012, 03:23 PM
RE: Scripts Recollection - by SilentStriker - 01-21-2012, 03:43 PM
RE: Scripts Recollection - by CorinthianMerchant - 01-21-2012, 04:21 PM
RE: Scripts Recollection - by jillis - 01-23-2012, 08:36 AM
RE: Scripts Recollection - by flamez3 - 01-23-2012, 10:14 AM
RE: Scripts Recollection - by jillis - 01-23-2012, 04:28 PM
RE: Scripts Recollection - by flamez3 - 01-24-2012, 03:27 AM
RE: Scripts Recollection - by jillis - 01-24-2012, 07:41 AM
RE: Scripts Recollection - by Stepper321 - 03-19-2012, 05:22 PM
RE: Scripts Recollection - by mrscoomich - 03-21-2012, 12:04 AM
RE: Scripts Recollection - by flamez3 - 03-21-2012, 12:47 PM
RE: Scripts Recollection - by mrscoomich - 03-25-2012, 01:41 AM



Users browsing this thread: 1 Guest(s)