scripting: Moving object

Post your scripting questions / solutions here

Moderator: Moderators

User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

read jv's post he is right it should be

$brush move or waitmove
Image
Grassy
First Lieutenant
Posts: 221
Joined: Sun Aug 22, 2004 11:36 am

Post by Grassy »

Arghhh!! :twisted:
read jv's post he is right it should be
$brush move or waitmove
Thats what I said 15 posts before... !!!
Please people if someone goes to the trouble of replying then at least give them the credit of READING them... carefully!!

Sorry BD, this is not aimed at you, I'm just venting my frustration.
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

Ok,so then it goes like this,i tested it,and it works,i got the trigger to bind to the goal,and the light also binded.

here ya go.

Code: Select all

// Bored
// ARCHITECTURE: Cheetohs
// SCRIPTING: Cheetohs
main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "Made By:"
setcvar "g_obj_alliedtext2" "Cheetohs"
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" "Or was"
setcvar "g_obj_axistext3" "It?"

setcvar "g_scoreboardpic" "none"

level waitTill prespawn

thread goallight_on

thread brushloop

//*** Precache Dm Stuff
exec global/DMprecache.scr

level.script = maps/dm/bored.scr

level waittill spawn

$brush bind $light
$light bind $goallight1
$goaltrig bind $brush

end

//goallight-----------------------------------------------------------------------

goallight_on:

               $goaltrig waittill trigger
               $light light 1 0 0 706
               wait 3
               $light light 0 0 0 706
               goto goallight_on

//brushloop1-----------------------------------------------------------------------

brushloop:

                $brush movesouth 200
                $brush waitmove
                wait 3
                $brush movenorth 200
                $brush waitmove
                wait 3
                $brush movenorth 200
                $brush waitmove
                wait 3
                $brush movesouth 200
                $brush waitmove
                wait 3
                goto brushloop

end 
Enjoy :wink:
Image
Post Reply