And here's the E2 "third_person" code:
@name third Person
@inputs
@outputs Angle:angle Position:vector
@persist
@trigger
runOnTick(1)
R = 120
Angle = owner():eyeAngles()
Yaw = Angle:yaw()
X = cos(Yaw) * R * (-1)
Y = sin(Yaw) * R * (-1)
Position = owner():pos() + vec(X,Y,90)
No comments:
Post a Comment