Thread
: [Solved]
sentry turn to target using pev_controller
View Single Post
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
05-18-2020 , 01:37 Re: sentry turn to target using pev_controller
#
8
came up with.
1. Set all angles to 0 when deploying.
2. Find the angle between the turret and the target.
(xs_vec_angle (turret, target), [1] in the array are both zero)
3. Set the angle to pev_controller_0.
__________________
GitHub
SteamWishlist
六四天安門事件
+ARUKARI-
View Public Profile
Send a private message to +ARUKARI-
Visit +ARUKARI-'s homepage!
Find More Posts by +ARUKARI-