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
#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


Messages In This Thread
Can't play my custom story - by SuperSoldier333 - 08-05-2012, 04:01 AM
RE: Can't play my custom story - by Froge - 08-05-2012, 04:09 AM
RE: Can't play my custom story - by KingCrimson - 08-05-2012, 04:52 AM
RE: Can't play my custom story - by KingCrimson - 08-05-2012, 04:14 PM
RE: Can't play my custom story - by Steve - 08-05-2012, 06:18 PM
RE: Can't play my custom story - by Steve - 08-05-2012, 07:08 PM
RE: Can't play my custom story - by Steve - 08-05-2012, 07:58 PM
RE: Can't play my custom story - by Steve - 08-05-2012, 08:03 PM
RE: Can't play my custom story - by tokugawa1 - 08-05-2012, 08:06 PM
RE: Can't play my custom story - by SuperSoldier333 - 08-05-2012, 09:38 PM
RE: Can't play my custom story - by Steve - 08-05-2012, 09:54 PM



Users browsing this thread: 1 Guest(s)