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
Can't play my custom story
SuperSoldier333 Offline
Junior Member

Posts: 12
Threads: 2
Joined: Aug 2012
Reputation: 0
#11
RE: Can't play my custom story

I already added an
" and I can't open the door anyway. Sad
08-05-2012, 06:57 PM
Find
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#12
RE: Can't play my custom story

show us your code at the moment and make sure to check the names

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
(This post was last modified: 08-05-2012, 07:08 PM by Steve.)
08-05-2012, 07:08 PM
Find
SuperSoldier333 Offline
Junior Member

Posts: 12
Threads: 2
Joined: Aug 2012
Reputation: 0
#13
RE: Can't play my custom story

////////////////////////////
// Run when the map starts
void OnStart()
{
AddUseItemCallback("", "keydoor", "mansion_1", "OuvrirPorte", true);

}

void OuvrirPorte(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0, false);
RemoveItem("keydoor");
}



////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}



I checked and the names of the door and the key are correct.
08-05-2012, 07:48 PM
Find
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#14
RE: Can't play my custom story

All I can think of any further is that you have an level door or something just an guess further the code seems all right
btw if you do have an leveldoor the code would be

SetLevelDoorLocked("mansion_1", false);
and also can you hear the sound of an door unlocking though?

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
(This post was last modified: 08-05-2012, 08:00 PM by Steve.)
08-05-2012, 07:58 PM
Find
SuperSoldier333 Offline
Junior Member

Posts: 12
Threads: 2
Joined: Aug 2012
Reputation: 0
#15
RE: Can't play my custom story

What is a level door? If it's a door to end a level, no I don't have one. i just have a room with two doors, one locked and the other that leads to a room with full of closet and grunt.
08-05-2012, 08:01 PM
Find
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#16
RE: Can't play my custom story

(08-05-2012, 08:01 PM)SuperSoldier333 Wrote: What is a level door? If it's a door to end a level, no I don't have one. i just have a room with two doors, one locked and the other that leads to a room with full of closet and grunt.


could you send me an link with an .rar file with your map and scripts?
so I can look for my self I think it has dto do with something else than the code

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
08-05-2012, 08:03 PM
Find
tokugawa1 Offline
Junior Member

Posts: 37
Threads: 8
Joined: Aug 2012
Reputation: 0
#17
RE: Can't play my custom story

(08-05-2012, 08:01 PM)SuperSoldier333 Wrote: What is a level door? If it's a door to end a level, no I don't have one. i just have a room with two doors, one locked and the other that leads to a room with full of closet and grunt.
try this code:

////////////////////////////

// Run when the map starts

void OnStart()

{
AddUseItemCallback("", "keydoor", "mansion_1", "UsedKeyOnDoor", true);
}



void UsedKeyOnDoor(string &in asItem, string &in asEntity)

{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0.0f, false);
RemoveItem("keydoor");
}

////////////////////////////

// Run when entering map

void OnEnter()

{



}



////////////////////////////

// Run when leaving map

void OnLeave()

{



}

Hope this helps
(This post was last modified: 08-05-2012, 08:18 PM by tokugawa1.)
08-05-2012, 08:06 PM
Find
SuperSoldier333 Offline
Junior Member

Posts: 12
Threads: 2
Joined: Aug 2012
Reputation: 0
#18
RE: Can't play my custom story

(08-05-2012, 08:06 PM)tokugawa1 Wrote:
(08-05-2012, 08:01 PM)SuperSoldier333 Wrote: What is a level door? If it's a door to end a level, no I don't have one. i just have a room with two doors, one locked and the other that leads to a room with full of closet and grunt.
try this code:

////////////////////////////

// Run when the map starts

void OnStart()

{
AddUseItemCallback("", "keydoor", "mansion_1", "UsedKeyOnDoor", true);
}



void UsedKeyOnDoor(string &in asItem, string &in asEntity)

{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0.0f, false);
RemoveItem("keydoor");
}

////////////////////////////

// Run when entering map

void OnEnter()

{



}



////////////////////////////

// Run when leaving map

void OnLeave()

{



}

Hope this helps
I tried with this one and I can't even see the custom story in-game.

(08-05-2012, 08:03 PM)Steve Wrote:
(08-05-2012, 08:01 PM)SuperSoldier333 Wrote: What is a level door? If it's a door to end a level, no I don't have one. i just have a room with two doors, one locked and the other that leads to a room with full of closet and grunt.


could you send me an link with an .rar file with your map and scripts?
so I can look for my self I think it has dto do with something else than the code
How? I'm sorry but I really don't know how.
(This post was last modified: 08-05-2012, 09:41 PM by SuperSoldier333.)
08-05-2012, 09:38 PM
Find
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#19
RE: Can't play my custom story

make an .rar file with right click(in a map or desktop) and new>winRAR zip archive, put your files in there and upload it at an site like mediafire or something

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
08-05-2012, 09:54 PM
Find
SuperSoldier333 Offline
Junior Member

Posts: 12
Threads: 2
Joined: Aug 2012
Reputation: 0
#20
RE: Can't play my custom story

Steve, I sent you a message.
08-05-2012, 10:08 PM
Find




Users browsing this thread: 1 Guest(s)