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
I need help making my secret shilf open.
Dilzilla Offline
Junior Member

Posts: 3
Threads: 1
Joined: Sep 2011
Reputation: 0
#2
RE: I need help making my secret shilf open.

i now have the code and it works however the shelf moves backwards....how can i make it move sideways?
//===========================================
// Starter's Script File!
//===========================================

//===========================================
// This runs when the map first starts
void OnStart()
{
SetEntityConnectionStateChangeCallback("lever_1", "func_shelf");
if(ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");
SetPlayerLampOil(100.0f);

for(int i = 0;i < 10;i++)
{
GiveItemFromFile("tinderbox", "tinderbox.ent");
}
}
}

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


void func_shelf(string &in asEntity, int alState)
{
if (alState == 1)
{
SetMoveObjectState("sdoor_1",1.0f);
PlaySoundAtEntity("", "quest_completed.snt", "shelf_move_1", 0, false);
return;
}
}


//===========================================
// This runs when the player leaves the map
void OnLeave()
{
}
09-17-2011, 02:01 AM
Find


Messages In This Thread
RE: I need help making my secret shilf open. - by Dilzilla - 09-17-2011, 02:01 AM



Users browsing this thread: 1 Guest(s)