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
Need Help for Scripting Rotating Bookshelf
zTizzle Offline
Junior Member

Posts: 1
Threads: 1
Joined: Aug 2012
Reputation: 0
#1
Need Help for Scripting Rotating Bookshelf

Im trying to script my custom map so that when you pull a lever it rotates a bookshelf so the player can advance, but it isnt working.
Here is my code:
PHP Code: (Select All)
    SetEntityConnectionStateChangeCallback("lever_book""shelf");
void shelf(string &in asEntityint alState){     if (alState == 1)     {     SetMoveObjectState("books",1.0f);     PlaySoundAtEntity("""quest_completed.snt""shelf_move_1"0false);          return;     }} 

books is the name of the bookshelf, and lever_book is the name of the lever. Any ideas?

sorry the code looks really bad, this is my first post on this forum,
(This post was last modified: 08-28-2012, 03:13 AM by zTizzle.)
08-28-2012, 03:12 AM
Find


Messages In This Thread
Need Help for Scripting Rotating Bookshelf - by zTizzle - 08-28-2012, 03:12 AM



Users browsing this thread: 1 Guest(s)