The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Help please
Sabrak Offline
Junior Member

Posts: 7
Threads: 3
Joined: Jul 2013
Reputation: 0
#1
Help please

Hello everyone i need a little help here. I am creating a secret way with closet (when player press button, the shelf will "move away"). So i created one shelf with some things (books, golden statue and some other things) and one same but not active. Later i made script
Quote:void OnStart()
{
//////////Button//////////
SetEntityPlayerInteractCallback("Button", "Secret", true);
}

//////////Secret patch//////////
void Secret(string &in asEntity)
{
SetEntityActive("shelf_high01_1", false);
SetEntityActive("book_row03_4", false);
SetEntityActive("book_row03_5", false);
SetEntityActive("book_row03_6", false);
SetEntityActive("book_row03_3", false);
SetEntityActive("book_row03_2", false);
SetEntityActive("book_row03_1", false);
SetEntityActive("paperpile01_1", false);
SetEntityActive("paperpile01_2", false);
SetEntityActive("genie_bottle_1", false);
SetEntityActive("book_pile01_2", false);
SetEntityActive("book_row03_11", false);
SetEntityActive("book_row03_10", false);
SetEntityActive("arabic_statue_gold_1", false);
SetEntityActive("book_row03_7", false);
SetEntityActive("book_row03_8", false);
SetEntityActive("book_row03_9", false);
SetEntityActive("shelf_high01_2", true);
SetEntityActive("book_row03_19", true);
SetEntityActive("book_row03_23", true);
SetEntityActive("book_row03_24", true);
SetEntityActive("book_row03_20", true);
SetEntityActive("book_row03_21", true);
SetEntityActive("book_row03_22", true);
SetEntityActive("paperpile01_3", true);
SetEntityActive("paperpile01_4", true);
SetEntityActive("genie_bottle_2", true);
SetEntityActive("book_pile01_3", true);
SetEntityActive("book_row03_25", true);
SetEntityActive("book_row03_29", true);
SetEntityActive("arabic_statue_gold_2", true);
SetEntityActive("book_row03_26", true);
SetEntityActive("book_row03_27", true);
SetEntityActive("book_row03_28", true);
SetEntityActive("Billboard_76", false);
SetEntityActive("Billboard_74", false);
PlaySoundAtEntity("Mechanism1", "move_gate", "Button", 0, false);
AddTimer("", 5.0f, "Stop");
}

//////////Stop button sound//////////
void Stop(string &in asTimer)
{
StopSound("Mechanism1", 2.0f);
}

void OnEnter()
{

}

void OnLeave()
{

}
but only entity that changes is golden statue and "genie bottle Big Grin". Where i made mistake? (Sorry for my english xD)
(This post was last modified: 08-29-2013, 05:01 PM by Sabrak.)
08-29-2013, 04:43 PM
Find


Messages In This Thread
Help please - by Sabrak - 08-29-2013, 04:43 PM
RE: Help please - by Adrianis - 08-29-2013, 04:48 PM
RE: Help please - by Kreekakon - 08-29-2013, 04:51 PM
RE: Help please - by Sabrak - 08-29-2013, 04:53 PM
RE: Help please - by Kreekakon - 08-29-2013, 04:55 PM
RE: Help please - by Sabrak - 08-29-2013, 05:00 PM



Users browsing this thread: 3 Guest(s)