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
Rotate secret book shelf with moveable book
Efendi Offline
Junior Member

Posts: 13
Threads: 7
Joined: Sep 2013
Reputation: 0
#1
Rotate secret book shelf with moveable book

Hello. I have a problem when i want to rotate the secret book shelf using a moveable book. The problem is that the shelf is not moving at all.

Here is the script:

Spoiler below!
void OnStart();

{

AddEntityCollideCallback("Book", "Book_Area", "func_shelf", true, 1);

}

void func_shelf(string &in asEntity, int alState)

{
if (alState == 1)
{
SetMoveObjectState("Shelf", 1);

}

}

I have named the moveable book to "Book", and placed a area near the book, and i have named it "Book_Area". The shelf name is "Shelf", and i have places a area near the corner of the shelf, where i want it to rotate, and named it "RotateShelf, and i have named the "RotateShelf" in the AngularOffsetArea on the Shelf.

Any help would be highly appreciated! Thanks in advance! Smile
(This post was last modified: 11-08-2013, 09:29 AM by Efendi.)
11-08-2013, 08:24 AM
Find


Messages In This Thread
Rotate secret book shelf with moveable book - by Efendi - 11-08-2013, 08:24 AM



Users browsing this thread: 1 Guest(s)