Animating
Moderator: Moderators
Alter slide
This sound may be what you are looking for--originally the alias named was "m4l1_altar_slide", but it only worked in that map. I added a sound workaround and named it "wall_slide".
//----------------------------------------------->
main:
// sound workaround
local.master = ScriptMaster
local.master aliascache wall_slide sound/mechanics/m4l1_altar_slide.wav soundparms 1.0 0.0 1.0 0.0 160 1600 item loaded maps "m moh dm obj "
level waittill prespawn
$walls time 3 //sets the travel time
$slabs time 3 //sets the travel time
level waittill spawn
thread move_stuff //starts the thread
end
move_stuff:
wait 15 //wait 15 seconds
$walls movedown 256 //... sets the movement command and distance
$walls loopsound wall_slide //... starts a sound alias looping
$walls waitmove //... starts the object moving and halts the script
$walls stoploopsound //... stops the sound after the move is done
wait 2
$slabs movedown 256
$slabs loopsound wall_slide
$slabs waitmove
$slabs stoploopsound
end
//----------------------------------------------->
//----------------------------------------------->
main:
// sound workaround
local.master = ScriptMaster
local.master aliascache wall_slide sound/mechanics/m4l1_altar_slide.wav soundparms 1.0 0.0 1.0 0.0 160 1600 item loaded maps "m moh dm obj "
level waittill prespawn
$walls time 3 //sets the travel time
$slabs time 3 //sets the travel time
level waittill spawn
thread move_stuff //starts the thread
end
move_stuff:
wait 15 //wait 15 seconds
$walls movedown 256 //... sets the movement command and distance
$walls loopsound wall_slide //... starts a sound alias looping
$walls waitmove //... starts the object moving and halts the script
$walls stoploopsound //... stops the sound after the move is done
wait 2
$slabs movedown 256
$slabs loopsound wall_slide
$slabs waitmove
$slabs stoploopsound
end
//----------------------------------------------->
//Close the Cells.
$axis_door1 damage 500
$axis_door2 damage 500
$axis_door3 damage 500
$axis_door4 damage 500
$axis_door1 moveforward 100
$axis_door2 movebackward 100
$axis_door3 moveleft 100
$axis_door4 moveright 100
$axis_door1 playsound snd_cells
$axis_door2 playsound snd_cells
$axis_door3 playsound snd_cells
$axis_door4 playsound snd_cells
$axis_door1 move
$axis_door2 move
$axis_door3 move
$axis_door4 waitmove
end
damage is just like the other setup info, time and direction etc. you can set it anywhere before you mvoe the object
When I am king, you will be first against the wall~


direction
You can add as many movement commands as you need before it moves.
$thing moveNorth 128
$thing moveWest 128
$thing move // or waitmove
It will move both directions at the same time.
$thing moveNorth 128
$thing moveWest 128
$thing move // or waitmove
It will move both directions at the same time.

