Page 3 of 3

Alter slide

Posted: Tue Jul 27, 2004 10:44 pm
by tltrude
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

//----------------------------------------------->

Posted: Wed Jul 28, 2004 3:26 pm
by Dani
Thanks all for your help, i have just 1 more NOOBY question. Were do i put $walls damage 500 in the script so that it works???

THANK YOU ALL FOR YOUR GOOD HELP :D

Posted: Wed Jul 28, 2004 3:54 pm
by M&M
i think it was supposed to be in the entity window (right?)

trigger

Posted: Wed Jul 28, 2004 5:14 pm
by tltrude
I don't know if that would work or not--I have never seen it used before. Normally, I would use a trigger below the wall to damage the players.

Posted: Thu Jul 29, 2004 5:52 pm
by Dani
How do i make something move diagonaly, because i can make something move North but not NorthWest?

Posted: Thu Jul 29, 2004 6:00 pm
by M&M
move X Y Z

Posted: Thu Jul 29, 2004 8:20 pm
by Splaetos

//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

direction

Posted: Thu Jul 29, 2004 9:44 pm
by tltrude
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.

Posted: Fri Jul 30, 2004 2:13 pm
by Dani
Oh yeh i already knew that cos i did move and rotation at same time, thx!

Posted: Sat Jul 31, 2004 12:00 am
by Jack Ruby
Your sites looking cool Dani, sort it out and finish it :)

Posted: Sat Jul 31, 2004 11:14 am
by Dani
my website? i have been put of from it cos of this mapping , lol kinda ironic that u mention it. i am finding it hard for content, and i am getting better at actionscript so it should be finished in the next year or so