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?
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#11
RE: possible to turn an .expobj into an entity?

Not a clue Bill! Don't even have the game installed anymore so I couldn't check. Just felt like I should point it out since I remember having issues with that in the past.
01-12-2015, 12:43 PM
Find
Streetboat Offline
Posting Freak

Posts: 1,099
Threads: 40
Joined: Mar 2011
Reputation: 56
#12
RE: possible to turn an .expobj into an entity?

(01-12-2015, 12:40 PM)Neelke Wrote: Ehm, I have actually made a scene where its the actual elevator that is going up. I made my own elevator wall out of static objects and made the actual elevator, lever and hanging lantern move upwards.

Sadly though, thanks to the way Amnesia works, you have to limit there what the player can do. If he jumps, you can clip out and if you crouch you might get stuck in the elevator floor if it goes fast. I have not messed around too much with this to fully understand how it works, but I have made a functioning one.

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?

[Image: signature-2.png]
01-12-2015, 03:23 PM
Find
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
Streetboat Offline
Posting Freak

Posts: 1,099
Threads: 40
Joined: Mar 2011
Reputation: 56
#14
RE: possible to turn an .expobj into an entity?

Sure, i'll take a poke at it, you sexy beast, you.

[Image: signature-2.png]
01-12-2015, 04:48 PM
Find
Neelke Offline
Senior Member

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

Lol, why thank you mister Blush

Hope you enjoy it Tongue


Attached Files
.rar   elevator_moveable.rar (Size: 9.24 KB / Downloads: 157)

Derp.
01-12-2015, 04:51 PM
Find




Users browsing this thread: 1 Guest(s)