Code:
@name Self aware minge chaser
@inputs X1 Y1 Z1
@outputs X2 Y2 Z2
@persist X Y Z
interval(100)
Pos = entity():pos()
X = Pos:x()
Y = Pos:y()
Z = Pos:z()
X2 = X - X1
Y2 = Y - Y2
Z2 = Z - Z2
I will make one later that uses the entity stuff and vectors. I just whipped that up on the spot.
Edit: Well I did a bit of tinkering and I think this might work. Just plug Tf into the Target finder and vector goes to the vector.
Code:
@name SA simple minge chaser
@inputs Tf:entity
@outputs Vector:vector
interval(100)
Pos = entity():pos()
Vector = Pos - Tf:pos()
For best results increase the mass of the prop its on and the thruster to about 25 and add some anti-noclip.
Bookmarks