Alter slide
Posted: Tue Jul 27, 2004 10:44 pm
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
//----------------------------------------------->