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
Level door ain't workin' out
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#1
Level door ain't workin' out

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
10-06-2011, 08:50 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: Level door ain't workin' out

(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.

10-06-2011, 09:04 PM
Find
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#3
RE: Level door ain't workin' out

No change, still won't transport me to the other map.
10-07-2011, 12:31 PM
Find
schmupper Offline
Junior Member

Posts: 23
Threads: 1
Joined: Aug 2011
Reputation: 2
#4
RE: Level door ain't workin' out

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

''Oh. My. God. He's DEAD. Quickly, if he hasnt started to smell, give him the kiss of life!''

Clarence - The monkey hater
10-07-2011, 01:24 PM
Find
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#5
RE: Level door ain't workin' out

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");
}

10-09-2011, 12:40 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#6
RE: Level door ain't workin' out

(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.
10-09-2011, 05:22 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#7
RE: Level door ain't workin' out

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

Tutorials: From Noob to Pro
10-09-2011, 06:01 PM
Website Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#8
RE: Level door ain't workin' out

(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 =]
10-09-2011, 06:31 PM
Find
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#9
RE: Level door ain't workin' out

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");
}
10-09-2011, 09:51 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#10
RE: Level door ain't workin' out

(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/amn...ions#doors

Tutorials: From Noob to Pro
10-09-2011, 10:03 PM
Website Find




Users browsing this thread: 1 Guest(s)