func_movelinear

Posted Jul 25, 2013
is there a way to make a func_movelinear move toward a player or object rather than a spicific direction.
Advertisement
Registered users don’t see ads! Register now!
Avatar
1,183 Posts
Posted Jul 25, 2013
Replied 4 hours later
No. it's move "linear". I'm pretty sure there's an entity that does this, but I'm not sure.
Posted Jul 26, 2013
Replied 1 hour later
Func_movelinears don't like to be parented, but you can try a func_door attached to a func_tank.
Posted Jul 26, 2013
Replied 6 hours later
What you probably want is a func_tracktrain. You can set it to move to path_tracks wherever they might be.
Avatar
97 Posts
Posted Jul 26, 2013
Replied 44 minutes later

ChickenMobile wrote:
What you probably want is a func_tracktrain. You can set it to move to path_tracks wherever they might be.

As far as I know, before the tracktrain starts moving, it looks where the path_track-entities are located and then goes to that position. If the path_track-entities are moving in that time, the tracktrain doesn't recognize the changes of their positions and still goes straight to the remembered position.

Correct me if I'm wrong, but that's what I saw when I parent some path_track-entites to a moving brush.

Avatar
1,183 Posts
Posted Jul 26, 2013
Replied 2 hours later
He's asking if there's a way to move brush entities to the player.
Posted Jul 26, 2013
Replied 33 minutes later
Set up a func_tank to continuously aim at the player, then parent a func_door to it with its open direction along the X-axis (to the right in the top view). Open the door and it will move toward the player.
Posted Jul 26, 2013
Replied 1 hour later
Thanks, i will give it a try.
Posted Jul 26, 2013
Replied 7 hours later
i tried your idea with the door, it only opened a little bit, so i tried the func_tank with the func_movelinear and that seemed to work. I have heard that its not a good idea to parent a func_movelinear to anything but it seemed to work fine.
Posted Jul 26, 2013
Replied 2 hours later
Are there any other targeting entities besides tank?
Posted Jul 27, 2013
Replied 1 hour later
The easiest way is to subtract the origins of the target and targetter with a script.
Advertisement
Registered users don’t see ads! Register now!
Posted Jul 30, 2013
Replied 3 days later

boctroy wrote:
i tried your idea with the door, it only opened a little bit, so i tried the func_tank with the func_movelinear and that seemed to work. I have heard that its not a good idea to parent a func_movelinear to anything but it seemed to work fine.

increase the the doors opening distance thingy

boctroy wrote:
Are there any other targeting entities besides tank?

train?