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
johnbox Offline
Member

Posts: 138
Threads: 5
Joined: Aug 2012
Reputation: 4
#3
RE: Need Help for Scripting Rotating Bookshelf

(08-28-2012, 03:12 AM)zTizzle Wrote: 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:
Spoiler below!
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,
first, congratulations, i have no idea how, but you managed to confuse my android browser completely with this script. i'm not sure, if i'm the only one with this problem, but maybe you cut put the code into a spoiler, so this thread isn't messed up the whole time.
(you can do spoiler with [spoi ler] your text [/spoi ler] (obviously without the spaces^^)

but ok, first, i would recommend to make use of the lovely enter-key, makes it easier to work with, and sometimes, for example in python, you have to do it. if it's just because of the mixed up forum-post, then... this doens't matter, excuse me.

and could you tell us, what specifically is wrong? what happens in the cs, does the switch simply not work? crashing?


edit: and andy was faster, as always. sorry for the doubled question.

Working on a full conv.-mod, first pictures coming soon...


Working with Blender and other Stuff since 2009.
Using HPL-Engine since 2012 (learning..)
(This post was last modified: 08-28-2012, 03:35 AM by johnbox.)
08-28-2012, 03:29 AM
Find


Messages In This Thread
RE: Need Help for Scripting Rotating Bookshelf - by johnbox - 08-28-2012, 03:29 AM



Users browsing this thread: 1 Guest(s)