@name Robotboy655's Wire Tool: Beacon Sensor
@inputs Target:entity
@outputs Distance LocalPosition:vector X Y Z Bearing Elevation WorldPosition:vector World_X World_Y World_Z Velocity_Units Velocity:vector Velocity_X Velocity_Y Velocity_Z Direction:vector Direction_X Direction_Y Direction_Z
@model models/props_lab/huladoll.mdl

interval(10)

Ent = entity()
EntPos = Ent:pos()
WorldPosition = Target:pos()
LocalPosition = WorldPosition - EntPos
Distance = WorldPosition:distance(EntPos)
X = LocalPosition:x()
Y = LocalPosition:y()
Z = LocalPosition:z()
Bearing = Ent:bearing(WorldPosition)
Elevation = Ent:elevation(WorldPosition)
World_X = WorldPosition:x()
World_Y = WorldPosition:y()
World_Z = WorldPosition:z()
Velocity_Untis = Target:vel():length()
Velocity = Target:vel() #TODO: NORMALIZE THIS
Velocity_X = Velocity:x()
Velocity_Y = Velocity:y()
Velocity_Z = Velocity:z()
Direction = vec(0,0,0) #TODO: GET NORMALIZED DIRECTION
Direction_X = Direction:x()
Direction_Y = Direction:y()
Direction_Z = Direction:z()
