https://sureai.net/forum/viewtopic.php?t=628
SCN BewegungScript
Float YAchsePosition
Float YAchse
Float XAchsePosition
Float XAchse
Float ZAchsePosition
Float ZAchse
Short State
Begin GameMode
if ( State == 1 ) ; Wenn Variable State gleich 1 ist. An der Y Achse verschieben.
Set YAchsePosition to GetPos Y
Set YAchse to YachsePosition +10
SetPos Y Yachse
endif
if ( State == 2 ) ; Wenn Variable State gleich 2 ist. An der X Achse verschieben.
Set XAchsePosition to GetPos X
Set XAchse to XachsePosition +10
SetPos X Xachse
endif
if ( State == 3 ) ; Wenn Variable State gleich 3 ist. An der Z Achse verschieben.
Set ZAchsePosition to GetPos Z
Set ZAchse to ZachsePosition +10
SetPos Z Zachse
endif
Endif ( State == 1 )
if ( "BootRef".GetDistance, "BootStopMarkerRef" <= 500 )
Set State to 4
endif
endifSCN BootBewegung
Float XAchsePosition
Float XAchse
Short State
Begin OnActivate
if ( Player.IsCurrentFurnitureRef "001BootRef" == 1)
Set State to 1
endif
End
Begin GamMode
if ( State == 1 )
Set XAchsePosition to GetPos X
Set XAchse to XachsePosition +5
SetPos X Xachse
endif
if ( State == 1 )
if ( "001BootRef".GetDistance, "001BootStopMarkerRef" <= 200 )
Set State to -1
endif
endif
End
SCN BootBewegung
Float XAchsePosition
Float XAchse
Float Timer
Short State
Begin OnActivate
if ( Player.IsCurrentFurnitureRef "001BootRef" == 1)
Set State to 1
endif
End
Begin GamMode
if ( State == 1 )
DisablePlayerControls
Set Timer to Timer + GetSecondsPassed
if Timer >= 2 )
Set State to 2
Set Timer to -1
endif
endif
if ( State == 2 )
Set XAchsePosition to GetPos X
Set XAchse to XachsePosition +5
SetPos X Xachse
endif
if ( State == 2 )
if ( "001BootRef".GetDistance, "001BootStopMarkerRef" <= 200 )
EnablePlayerControls
Set State to -1
endif
endif
End