Page 2 of 2

Posted: Tue Aug 19, 2003 10:03 pm
by Alcoholic
you select the brushes that you want to rock, right click, make it a script>object entity, then push N. in the window that comes up, in the key box, type in $targetname. in the value box, type in whatever you want to name your 'rocker'. then push enter, and you can access it in script like this

$targetname 'dowahtever'


if you wanna make it rock continuously, you can do this for the rocker thread:

Code: Select all

rocker:

$myrocker time 2

while (1)
{
    waitframe //just in case
    $myrocker rotatexup 10
    $myrocker rotatezup 10
    $myrocker waitmove
    $myrocker rotatexdown 10
    $myrocker rotatezdown 10
    $myrocker waitmove
}