Animating
Moderator: Moderators
Script
Ok, do you have a map started that you can post of download, Dani? If you don't have a script, this one will do for now.
//----------------------------------------------->
main:
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 lighthouse_run //... 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 lighthouse_run
$slabs waitmove
$slabs stoploopsound
end
//----------------------------------------------->
To use the above script, you would need to make a single script object out of all four walls and targetname it "walls". Do the same for the slabs. Copy the script to Notepad and name the file "mymapname.scr"--the same name as your bsp file. Then put both the bsp and script in main/maps/dm for testing. The walls should move down 256 units 15 seconds after you spawn. Of course, you can change anything you want in the script.
Hope that helps!
//----------------------------------------------->
main:
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 lighthouse_run //... 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 lighthouse_run
$slabs waitmove
$slabs stoploopsound
end
//----------------------------------------------->
To use the above script, you would need to make a single script object out of all four walls and targetname it "walls". Do the same for the slabs. Copy the script to Notepad and name the file "mymapname.scr"--the same name as your bsp file. Then put both the bsp and script in main/maps/dm for testing. The walls should move down 256 units 15 seconds after you spawn. Of course, you can change anything you want in the script.
Hope that helps!
eh, when i made my liberation map, I have several cell doors(about 6 brushes a piece including a clip). I made each cell door a script_object of its own, but im pretty sure I did each door seperately. however, I move them in the script using one targetname for all the ones going in the same direction... (2 or 3 per direction) ... that worked without error...The French Tourist ! wrote:If you make more than 1 entity with the same targetname, the script will fail with an error message : "There are more than 1 entity with the same targetname ! This command requires exactly one !"
lol im ALMOST positive I did it that way... say 99% sure... what were you trying to move there?
When I am king, you will be first against the wall~


body
A dead body will also block the brushes from moving--until it vanishes. So, you might need a small pit to hold the bodies--32 units should be enough.
|_____|
__ ___
\____/
|_____|
__ ___
\____/
all the sounds are located in the pak files .so check them out and here them all
i know its annoying but at least they are gonna be useful for future projects .
also ,if u want to add ur own sound check the sound tut in the tutorial sections
and no ,walldamage doesnt cause the player to be damaged when touching them
also ,if u want to add ur own sound check the sound tut in the tutorial sections
and no ,walldamage doesnt cause the player to be damaged when touching them


