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
Elevator
ApeCake Offline
Member

Posts: 116
Threads: 20
Joined: Jun 2012
Reputation: 4
#1
Elevator

I can't seem to get my elevator to work. I looked at the elevator.hps from The Dark Descent but the only "worthwhile" thing I could find was SetMoveObjectStateExt("elevator_1", 1, 2, 1.0f, 0.2f, true);. So, this is my script.


void OnStart()
{
SetMoveObjectStateExt("elevator_1", 1, 2, 1.0f, 0.2f, true);
SetMoveObjectStateExt("elevator_lever_1", 1, 2, 1.0f, 0.2f, true);
SetMoveObjectStateExt("elevator_lamp_1", 1, 2, 1.0f, 0.2f, true);
}

It doesn't seem to work; I do not get any errors or anything, just when I am in the game the elevator does not move at all. What did I do wrong and how can I fix this? Please note, I only want the elevator moving. I am currently not interested in particle effects, sounds and all that stuff.

Also note, the "how-to-create-an-elevator" page on the wiki isn't really that useful. For me atleast.
07-12-2012, 08:30 PM
Find


Messages In This Thread
Elevator - by ApeCake - 07-12-2012, 08:30 PM
RE: Elevator - by SilentStriker - 07-12-2012, 08:32 PM
RE: Elevator - by ApeCake - 07-12-2012, 08:41 PM
RE: Elevator - by SilentStriker - 07-12-2012, 08:50 PM
RE: Elevator - by Steve - 07-13-2012, 04:42 PM
RE: Elevator - by Adny - 07-13-2012, 08:25 PM



Users browsing this thread: 1 Guest(s)