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
How to make an entity move on X and Z axis?
The MasterNater Offline
Junior Member

Posts: 12
Threads: 3
Joined: Jan 2015
Reputation: 0
#1
How to make an entity move on X and Z axis?

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?
01-03-2015, 07:46 PM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#2
RE: How to make an entity move on X and Z axis?

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/am..._functions

I wanna mention as well that you can push objects around with AddPropImpulse.

(This post was last modified: 01-03-2015, 07:58 PM by Daemian.)
01-03-2015, 07:57 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#3
RE: How to make an entity move on X and Z axis?

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 Wink
(This post was last modified: 01-03-2015, 08:05 PM by DnALANGE.)
01-03-2015, 08:04 PM
Find
The MasterNater Offline
Junior Member

Posts: 12
Threads: 3
Joined: Jan 2015
Reputation: 0
#4
RE: How to make an entity move on X and Z axis?

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. Tongue
01-03-2015, 08:50 PM
Find




Users browsing this thread: 1 Guest(s)