I am now working on a project, where i want it to hover +50 in the z axis, but to be able to move around on the X and Y axis. I have this, but it just spazes when i use it.
E2 Code:
@persist Pos:vector PPos:vector Vec:vector Ang:angle
@trigger all
if(first()){
Pos = entity():isWeldedTo():pos()
}
X = entity():isWeldedTo():pos():x()
Y = entity():isWeldedTo():pos():y()
entity():setMass(0)
interval(10)
PPos = ((Pos - entity():isWeldedTo():pos())*500)+vec(-X,-Y,50)
entity():isWeldedTo():applyForce(PPos + $PPos*5)
OOOps wrong section sorrryyyy!!!!
Bookmarks