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
Problem when loading map
Nye Offline
Senior Member

Posts: 250
Threads: 8
Joined: Jan 2011
Reputation: 2
#8
RE: Problem when loading map

(03-03-2011, 08:33 PM)Viperdream Wrote: Tried the script in Pandemoneus map and also tried the script nkmol suggested me

Still won't work :<

This is my current script:
Spoiler below!
void OnStart()
{
SetEntityConnectionStateChangeCallback("leverbooks_01", "StateChangeLever");

AddEntityCollideCallback("Player", "LetterArea_01", "Collide_Area", true, 1);
}
void StateChangeLever(string &in asEntity, int alState)
{
AddDebugMessage("called StateChangeLever", false);

if(alState == 1){
SetLeverStuckState(asEntity, 1, true);
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0, false);
PlayMusic("010_puzzle01.ogg", false, 1.0f, 4.0f, 3, true);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0, false);
}
}
void Collide_Area(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("note_letter_1", true); //makes letter appear on the floor near the door
}

//===========================================
// This runs when the player enters the map
void OnEnter()
{
}

//===========================================
// This runs when the player leaves the map
void OnLeave()
{
StopMusic(0.5f, 1);
}

Specifically, in-game - what works and what doesn't work?

03-04-2011, 01:34 AM
Find


Messages In This Thread
Problem when loading map - by Viperdream - 03-02-2011, 05:34 PM
RE: Problem when loading map - by Oscar House - 03-02-2011, 05:44 PM
RE: Problem when loading map - by Viperdream - 03-02-2011, 06:24 PM
RE: Problem when loading map - by nkmol - 03-02-2011, 09:01 PM
RE: Problem when loading map - by Pandemoneus - 03-02-2011, 09:02 PM
RE: Problem when loading map - by nkmol - 03-02-2011, 09:16 PM
RE: Problem when loading map - by Viperdream - 03-03-2011, 08:33 PM
RE: Problem when loading map - by Nye - 03-04-2011, 01:34 AM
RE: Problem when loading map - by Viperdream - 03-04-2011, 04:35 PM
RE: Problem when loading map - by Pandemoneus - 03-04-2011, 05:15 PM
RE: Problem when loading map - by Viperdream - 03-04-2011, 06:08 PM



Users browsing this thread: 1 Guest(s)