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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script wrong
snickker300 Offline
Junior Member

Posts: 2
Threads: 1
Joined: Jul 2012
Reputation: 0
#1
Script wrong

I'm trying to make a custom story for amnesia and i'm kinda new to scripting. I tried making a script with the idea that you could open a door with a hollow needle but everytime i try to open the door with the needle it says: "cannot use this item this way!." This is my script:


void Onstart()
{
AddUseItemCallback("","hollow_needle_1","prison_section_4","FUNC1", true);
}

void Onenter()
{

}

void Onleave()
{

}

void FUNC1(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("prison_section_4", false, true);
RemoveItem("hollow_needle_1");
}


Please help!
(This post was last modified: 07-01-2012, 07:17 PM by snickker300.)
07-01-2012, 04:35 PM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Script wrong

OnStart OnEnter and OnLeave aren't spelled properly; the word after On needs to be capitalized as well.

I rate it 3 memes.
07-01-2012, 05:37 PM
Find
snickker300 Offline
Junior Member

Posts: 2
Threads: 1
Joined: Jul 2012
Reputation: 0
#3
RE: Script wrong

(07-01-2012, 05:37 PM)andyrockin123 Wrote: OnStart OnEnter and OnLeave aren't spelled properly; the word after On needs to be capitalized as well.
Thanks!
07-01-2012, 07:25 PM
Find




Users browsing this thread: 1 Guest(s)