Any ideas appreciated
Demeggy
scn MoveObjectScriptRef objectFloat x1Float y1Float z1Float x2Float y2Float z2Float diffxFloat diffyFloat diffzFloat objxFloat objyFloat objzShort doonceBegin GamemodeIf doonce == 0 Set object to [your items ref] Set x1 to [begin marker].GetPos X Set y1 ...etc Set z1 ...etc Set x2 to [end marker].GetPos X Set y2.... Set z2..... Set diffx to ( x2 - x1 ) Set diffy to ( y2 - y1 ) Set diffz.... object.MoveTo [begin marker] ;If its not there already! Set objx to x1 Set objy to y1 Set objz to z1 Set doonce to 1 Return ;the returns only here to allow a frame for the object to move the first marker, not sure if it makes a difference but it cant hurtEndIfSet speed to ( GetSecondsPassed * 0.5 ) ;The 0.5 here you can change to whatever you want, the smaller it is the slower the object will travel, experiment with itSet objx to ( objx + ( diffx * speed ) ) ; Im not entirely sure the laws of BODMAS apply in GECK, if they dont then an intermediate stage with extra variables will be needed here, someone else may be able to help you with thatSet objy to ( objy + ( diffy * speed ) )Set objz ....object.SetPos X objxobject.SetPos Y objy;etc for zEnd