Frictional Games Forum (read-only)
possible to turn an .expobj into an entity? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: possible to turn an .expobj into an entity? (/thread-29483.html)

Pages: 1 2


RE: possible to turn an .expobj into an entity? - Traggey - 01-12-2015

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.


RE: possible to turn an .expobj into an entity? - Streetboat - 01-12-2015

(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?


RE: possible to turn an .expobj into an entity? - Neelke - 01-12-2015

(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:

Code:
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.


RE: possible to turn an .expobj into an entity? - Streetboat - 01-12-2015

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


RE: possible to turn an .expobj into an entity? - Neelke - 01-12-2015

Lol, why thank you mister Blush

Hope you enjoy it Tongue