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
what does this mean?
megsb927 Offline
Junior Member

Posts: 30
Threads: 10
Joined: Feb 2013
Reputation: 0
#7
RE: what does this mean?

(03-16-2013, 07:37 PM)NaxEla Wrote: It needs to be like this:
PHP Code: (Select All)
void OnStart()
{
    
AddUseItemCallback("""Key_3""castle_1""UsedKeyOnDoor"true);
}

void UsedKeyOnDoor(string &in asItemstring &in asEntity)
{
    
SetSwingDoorLocked("castle_1"false);
    
PlaySoundAtEntity("""unlock_door""castle_1"0false);
    
RemoveItem("Key_3");
}

void OnEnter()
{

}

void OnLeave()
{



It's saying this: FATAL ERROR: Could not load script file 'custom_stories/Mark's
story/csmaps/C:/Program Files (x86)/Amnesia- The Dark
Descent/redist/custom_stories/Mark's story/csmaps/map_3.hps'!
main (8,2) : ERR : No matching signatures to
'SetSwingDoorLocked(string@&, const bool)'
and this is my entire script for this map now:
void OnStart()
{
AddUseItemCallback("", "Key_3", "castle_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_1", false);
PlaySoundAtEntity("", "unlock_door", "castle_1", 0, false);
RemoveItem("Key_3");
}

void OnEnter()
{

}

void OnLeave()
{

}
the swing door is checked off as locked in the level editor, if that has anything to do with it
03-16-2013, 07:52 PM
Find


Messages In This Thread
what does this mean? - by megsb927 - 03-16-2013, 04:51 AM
RE: what does this mean? - by PutraenusAlivius - 03-16-2013, 06:54 AM
RE: what does this mean? - by megsb927 - 03-16-2013, 05:17 PM
RE: what does this mean? - by NaxEla - 03-16-2013, 05:21 PM
RE: what does this mean? - by megsb927 - 03-16-2013, 07:33 PM
RE: what does this mean? - by NaxEla - 03-16-2013, 07:37 PM
RE: what does this mean? - by megsb927 - 03-16-2013, 07:52 PM
RE: what does this mean? - by NaxEla - 03-16-2013, 08:28 PM
RE: what does this mean? - by PutraenusAlivius - 03-17-2013, 02:14 AM



Users browsing this thread: 1 Guest(s)