Frictional Games Forum (read-only)
Level door ain't workin' out - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Level door ain't workin' out (/thread-10636.html)

Pages: 1 2


Level door ain't workin' out - i3670 - 10-06-2011

So I've made my level door and I followed a tutorial on youtube. The problem is that when I unlock the door and then press to "enter" it nothing happens.

What I've written when it comes to the door.

StartPos
PlayerStartArea_3

MapFile
Secondary.map

I've placed the PlayerStartArea_3 inside Secondary.map


Youtube video: http://www.youtube.com/watch?v=CklTIT2W4g4



RE: Level door ain't workin' out - Statyk - 10-06-2011

(10-06-2011, 08:50 PM)i3670 Wrote: So I've made my level door and I followed a tutorial on youtube. The problem is that when I unlock the door and then press to "enter" it nothing happens.

What I've written when it comes to the door.

StartPos
PlayerStartArea_3

MapFile
Secondary.map

I've placed the PlayerStartArea_3 inside Secondary.map


Youtube video: http://www.youtube.com/watch?v=CklTIT2W4g4
Make sure to fill in the areas highlighted in the picture in my attachment, following your details.




RE: Level door ain't workin' out - i3670 - 10-07-2011

No change, still won't transport me to the other map.



RE: Level door ain't workin' out - schmupper - 10-07-2011

Guess something is wrong with your script, paste it here so we can have a look at it.



RE: Level door ain't workin' out - i3670 - 10-09-2011

Void Onstart ()
{
AddUseItemCallback("", "Royalkey", "level_wood_1", "UsedKeyOnDoor", true);
}

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




RE: Level door ain't workin' out - Statyk - 10-09-2011

(10-09-2011, 12:40 PM)i3670 Wrote: Void Onstart ()
{
AddUseItemCallback("", "Royalkey", "level_wood_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("level_wood_1", false, true);
PlaySoundAtEntity("", "unlock_door", "level_wood_1", 0, false);
RemoveItem("Royalkey");
}
Is it NOT unlocking the door? Or is it unlocking the door but NOT changing the map?

that could be helpful to figure out whats wrong.



RE: Level door ain't workin' out - Your Computer - 10-09-2011

If you want to unlock a level door, you have to use SetLevelDoorLocked() not SetSwingDoorLocked().


RE: Level door ain't workin' out - Statyk - 10-09-2011

(10-09-2011, 06:01 PM)Your Computer Wrote: If you want to unlock a level door, you have to use SetLevelDoorLocked() not SetSwingDoorLocked().
Nice eye. My mind went right over that. What he said =]



RE: Level door ain't workin' out - i3670 - 10-09-2011

Got the error message:

main (22, 3): ERR: No matching signatures to 'SetLevelDoorLocked(string@&, const bool, const bool)'



Script after change:

void OnStart()
{
AddUseItemCallback("", "Royalkey", "level_wood_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("level_wood_1", false, true);
PlaySoundAtEntity("", "unlock_door", "level_wood_1", 0, false);
RemoveItem("Royalkey");
}



RE: Level door ain't workin' out - Your Computer - 10-09-2011

(10-09-2011, 09:51 PM)i3670 Wrote: Got the error message:

main (22, 3): ERR: No matching signatures to 'SetLevelDoorLocked(string@&, const bool, const bool)'

Level doors neither open nor close, so there is no "effect" to them. Therefore, only one boolean parameter is required.

http://wiki.frictionalgames.com/hpl2/amnesia/script_functions#doors