How to make an entity move on X and Z axis? - 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: How to make an entity move on X and Z axis? (/thread-28984.html) |
How to make an entity move on X and Z axis? - The MasterNater - 01-03-2015 Hi everyone, I'm relatively new to scripting Amnesia custom stories. I am able to do some basic to moderate scripting on my own, but there's still some things I don't know. In particular, I need to know if its possible to move an entity or a compound on the X and Z axis (sideways, forwards, backwards, etc.), and if so, how? RE: How to make an entity move on X and Z axis? - Daemian - 01-03-2015 To move entities you got a new function called SetEntityPos. But there's no way to know what angle the entity is facing, sadly. https://wiki.frictionalgames.com/hpl2/amnesia/script_functions I wanna mention as well that you can push objects around with AddPropImpulse. RE: How to make an entity move on X and Z axis? - DnALANGE - 01-03-2015 What i do is SUPER easy; Click an entity and move it around while moving around LOOK TO THE RIGHT PANEL. There you will see the numbers change (X-Ayis Y-Axis Z-Axis), THERE you can see what direction your entity is going, SO, if you want to script it you know what direction you need to knoe. Easy RE: How to make an entity move on X and Z axis? - The MasterNater - 01-03-2015 Thank you Daemian, I'll give it a try and get back to this thread once I have to let you know if it worked or not. Lol, DnAlange, that wasn't quite what I mean (I'm very used to the level editor by now- my fault for not making my question clear), but thank you for trying to help. My issue is trying to script entities to move in-game (much like the cars at the beginning of your Premonition full conversion mod). If you have any advice to add to Daemians, let me know. |