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
possible to turn an .expobj into an entity?
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#13
RE: possible to turn an .expobj into an entity?

(01-12-2015, 03:23 PM)Streetboat Wrote: I'm okay with the player not being able to move during the transition. As long as its possible to send the elevator up either with him in it or not, I'll be happy. How did you achieve this feat?

I basically had to convert the elevator, the hanging elevator lantern and the lever to entities as move objects and then moved each entity up by themselves.

Like this:

void OnStart()
{
    SetMoveObjectStateExt("elevator_moveable", 30, 2, 1.0f, 0.2f, true);
    //SetMoveObjectStateExt("elevator_lamp", 30, 2, 1.0f, 0.2f, true); //Dont know why this is turned off
    SetMoveObjectStateExt("elevator_lever_1", 30, 2, 1.0f, 0.2f, true);
}

This is what I created while messing around with this. Ignore all the other events, lol.





I can send you the entities I used here if that's what you wish.

Derp.
(This post was last modified: 01-12-2015, 04:31 PM by Neelke.)
01-12-2015, 04:26 PM
Find


Messages In This Thread
RE: possible to turn an .expobj into an entity? - by Neelke - 01-12-2015, 04:26 PM



Users browsing this thread: 1 Guest(s)