Rotate to target

Avatar
Doctor_GLaDOS
21 Posts
Posted Aug 20, 2014
Hi !
How to make entity follow (rotate) target like security camera so it will always face it.
Thanks for anserws
Advertisement
Registered users don't see ads! Register now!
Avatar
ChickenMobile
2,460 Posts
Posted Aug 20, 2014
Replied 1 hour later
The entity you want here is something called a func_tank. Add an output to the tank using SetTargetEntity to the name of your object you would like it to follow. Use !player to target the player (singleplayer only) else use !player_blue and !player_orange for Co-Op.

e.g. OnMapSpawn -> func_tank -> SetTargetEntity -> !player

Avatar
Doctor_GLaDOS
21 Posts
Posted Aug 20, 2014
Replied 2 hours later
Thanks alot
Avatar
Lpfreaky90
2,842 Posts
Posted Aug 20, 2014
Replied 1 minutes later

Doctor_GLaDOS wrote:
Thanks alot

http://hyperboleandahalf.blogspot.nl/20 ... thing.html

Avatar
Ciirulean
40 Posts
Posted Aug 20, 2014
Replied 3 hours later
Should have been an image of him thanking an alot.
Advertisement
Registered users don't see ads! Register now!
Avatar
ChickenMobile
2,460 Posts
Posted Aug 22, 2014
Replied 1 day later