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
Script Help Moving shelf via button
Quotentote Offline
Member

Posts: 118
Threads: 23
Joined: Dec 2011
Reputation: 11
#1
Moving shelf via button

i created an area (on the button) where the player has to interact with (like pushing this button)

PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""shelfarea""rotate"true1);
}

void rotate(string &in asEntityint alState)
    {
         
SetMoveObjectState("rotate_shelf_01",1.0f);
         
PlayMusic("10_puzzle01.ogg",false,0.7,0.1,10,false);
         
GiveSanityBoostSmall();
         return;
    } 

why does it not work Sad

(yes i connected the shelf with the angular offset area//all names are correct etc)

greetings
01-21-2012, 05:19 AM
Find


Messages In This Thread
Moving shelf via button - by Quotentote - 01-21-2012, 05:19 AM
RE: Moving shelf via button - by Tripication - 01-21-2012, 05:23 AM
RE: Moving shelf via button - by flamez3 - 01-21-2012, 05:47 AM
RE: Moving shelf via button - by triadtimes - 01-21-2012, 05:57 AM
RE: Moving shelf via button - by Quotentote - 01-21-2012, 06:09 AM



Users browsing this thread: 1 Guest(s)