Animating
Moderator: Moderators
Animating
At the begining of a map i want four sperate walls to move downwards and then after a the walls have got into place i want four OTHER seperate slabs to move downwards. How would i do this, i guess it is animation.
if they all move at same time, distance and direction....
give them all a targetname like downwall_1 or whatever name will help you keep them straight in your head....
$downwall_1 time 3
//how slow or fast you want them to move, in seconds i think, the total time it will take to move the distance. You dont strictly need this, but it gives you more control.
$downwall_1 movedown 500
//number is in units, the same measure you see in radiant. This sets where it will move, it does not actualy move it.
$downwall_1 move or $downwall_1 waitmove
//waitmove pauses tha section of the script while it moves the object, move just moves it.
there are other modifiers you can put on them as well, like damage... if you want to move one section then another, you can use waitmove, or you can use a different timing method.
You can also use waypoints and 'moveto' but I havent as of yet, so search for that method if you want to try that.
and of course, each targetname will move as a group, so anything that is moving different, timed different etc, needs a seperate targetname and procedure to move.
give them all a targetname like downwall_1 or whatever name will help you keep them straight in your head....
$downwall_1 time 3
//how slow or fast you want them to move, in seconds i think, the total time it will take to move the distance. You dont strictly need this, but it gives you more control.
$downwall_1 movedown 500
//number is in units, the same measure you see in radiant. This sets where it will move, it does not actualy move it.
$downwall_1 move or $downwall_1 waitmove
//waitmove pauses tha section of the script while it moves the object, move just moves it.
there are other modifiers you can put on them as well, like damage... if you want to move one section then another, you can use waitmove, or you can use a different timing method.
You can also use waypoints and 'moveto' but I havent as of yet, so search for that method if you want to try that.
and of course, each targetname will move as a group, so anything that is moving different, timed different etc, needs a seperate targetname and procedure to move.
When I am king, you will be first against the wall~


But
Actually, you can have as many brushes as you want in an object. Just select all four walls and then make them a single script_object with a single targetname.
But, if you want them to move at slightly different times, they will each need to have their own targetname and movement lines. Timing is done with a "wait" command, and the number of seconds to wait, Ex. "wait 3".
But, if you want them to move at slightly different times, they will each need to have their own targetname and movement lines. Timing is done with a "wait" command, and the number of seconds to wait, Ex. "wait 3".
-
The French Tourist !
- Lance Corporal
- Posts: 17
- Joined: Mon May 17, 2004 11:31 pm
- Contact:
What i REALLY don't understand is the programing bit, if someone just gave me a bit of script to copy and paste, to see if it works then i would be very grateful. Also when makin a brush into a script_object do you set it name as this?:
KEY:targetname
VALUE:walldown
Thanks for all your help guys!
Dani
KEY:targetname
VALUE:walldown
Thanks for all your help guys!
Dani
Make your brush a script object and add:
Key: $targetname
Value: whatever
And in a script you have that object do something by
$whatever dostuff
eg:
$whatever rotatex 60
and for this you need a trigger, so you can tell whatevet when to move, so make a brush, and make it a trigger_use
Key: setthread
Value: shiny
This will make it so that when u press use whilst in the trigger it will set the thread shiny going:
shiny:
$whatever rotatex 60
end
should make the brush called whatever rotate aound itself
Should work... i think
Mj
Key: $targetname
Value: whatever
And in a script you have that object do something by
$whatever dostuff
eg:
$whatever rotatex 60
and for this you need a trigger, so you can tell whatevet when to move, so make a brush, and make it a trigger_use
Key: setthread
Value: shiny
This will make it so that when u press use whilst in the trigger it will set the thread shiny going:
shiny:
$whatever rotatex 60
end
should make the brush called whatever rotate aound itself
Should work... i think
Mj


hehe i tried 
I am a mapper, not a scripter (you can probably tell!)
Try going to the recyclebin
http://www.decalattack.com/recyclebin
and look for bridge that is quite good for a learn
I am a mapper, not a scripter (you can probably tell!)
Try going to the recyclebin
http://www.decalattack.com/recyclebin
and look for bridge that is quite good for a learn




