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
Custom story crashes at this map: 03_hall.map
goalreadymc
Unregistered

 
#1
Custom story crashes at this map: 03_hall.map

im testing my custom story and when i get to the map its crashes. i think ive done my scripting wrong. can anyone examine it?

void OnStart()
{

PlayMusic("09_amb_safe.ogg", true, 3, 3, 1, true);

}

{

AddUseItemCallback("", "cellar_key", "cellar_door", "UsedKeyOnDoor", true);

}


void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("cellar_door", false, true);
    PlaySoundAtEntity("", "unlock_door", "cellar_door, 0, false);
    RemoveItem("cellar_key");
}
[/align]
07-18-2014, 03:34 AM
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Custom story crashes at this map: 03_hall.map

PHP Code: (Select All)
void OnStart()
{
PlayMusic("09_amb_safe.ogg"true331true);
AddUseItemCallback("""cellar_key""cellar_door""UsedKeyOnDoor"true);
}

void UsedKeyOnDoor(string &in asItemstring &in asEntity)
{
    
SetSwingDoorLocked("cellar_door"falsetrue);
    
PlaySoundAtEntity("""unlock_door""cellar_door"0false); //Mudbill told me to fix this :D
    
RemoveItem("cellar_key");


That should fix it...

EDIT: Thanks Mudbill, fixed that :3

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 07-18-2014, 03:23 PM by Romulator.)
07-18-2014, 07:32 AM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#3
RE: Custom story crashes at this map: 03_hall.map

^Missing closing quote on cellar_door down there. Just add it before the comma.

07-18-2014, 01:10 PM
Find
goalreadymc
Unregistered

 
#4
RE: Custom story crashes at this map: 03_hall.map

K, it works now. thx!
07-18-2014, 09:52 PM




Users browsing this thread: 2 Guest(s)