waves

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post 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
}
Post Reply