while the crane is moving back to it's original position, the button will still be triggerable, making it possible to send it to the waypoint_far again, if this is what you need, then stick with waypoints,
using both bdbodger's and tltrude's methods will have an advantage as to not using waypoints, but if the trigger is pressed while it's moving it'll move again and probably end up off the rails you've created, or even move through a wall...
an easy way to overcome this...
crane_mover:
$crane_button nottriggerable //turns the trigger off
$crane speed 5 //will move 5 units per second or use $crane time 5 will take 5 seconds to reach it's destination
$crane moveEast 1024
$crane waitmove
wait 3
$crane moveWest 1024
$crane waitmove
$crane_button triggerable //turns it back on
end
with movement commands you can use any of these...
moveNorth
moveSouth
moveWest
moveEast
moveLeft
moveRight
moveForward
moveBackward
moveUp
moveDown
each with the prefix of the entity name in you case $crane and the suffix number of units
also when you have a certain position you want to move it to you can use
moveTo
where it moves to another entity or point on the map
$crane moveTo $player
if you want to you can rotate entities aswell (bear in mind though not models),
rotateXup
rotateXdown
rotateYup
rotateYdown
rotateZup
rotateZdown
all of these again will have the prefix of entity and suffix this time of the angle
$crane rotateXup 45
also note that when using rotate, you will need to use time and not speed, as the number of units moved is 0
anyway back to the point...
if you wanted the crane moveabe at all times where it'll move to it's waypoint_far all the time (in these examples you don't need any waypoints), what i'd do...
main:
$crane.newposition = ($crane.origin + (0 1240 0))
$crane.oldposition = $crane.origin
$crane speed 5
end
crane_mover:
$crane moveto $crane.newposition
$crane waitmove
wait 3
$crane moveto $crane.oldposition
$crane waitmove
end
when using something that always triggerable, use speed, as time will speed up if it's already on it's way to the destination
in the above example i've set some constants that'll never change,
$crane.newposition and .oldposition, these are just names i've made up but .origin is a variable that is determined by where the $crane is
constants = values that will never change
variables = values that can change
there's no real need to know the difference between constants and variables, just thought i'd throw that one in there
for now u've got enough to get your head around so, good luck
