2 questions: brush movement, trigger triggers, heh

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
cp51
Corporal
Posts: 27
Joined: Thu Jun 12, 2003 7:35 pm

2 questions: brush movement, trigger triggers, heh

Post by cp51 »

hi i have 2 questions:

1) how do i make a brush move back and forth, just slide one way then back? and can i change the speed?

2) can i make a trigger that reacts when you shoot it? and then make it make you say something? like when you shoot it, it makes you say, "haha, i hit it!!"? if so how?

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

Post by Alcoholic »

1. lets say the name of this brush is $thebrush.

heres your script:

Code: Select all

THE_BRUSH:

$thebrush moveforward 128 //thats means he will move forward, based on where he is facing, 128 units
$thebrush time 8 //it will take 8 seconds to get there
$thebrush waitmove //$thebrush: holdon script! let me move where im moving. wait until im done!

//-OR-
$thebrush movenorth 128 //thats means he will move north, based on where "north" is in the map, 128 units
$thebrush time 4 //it will take 4 seconds to get there
$thebrush move //$thebrush: dont worry script! im moving now. dont wait for me to finish!
end
2.

in the trigger_multiple properties, there are spawnflags. read the descriptions.
cp51
Corporal
Posts: 27
Joined: Thu Jun 12, 2003 7:35 pm

Post by cp51 »

hi,

ok, i kow this post is old, but i am just getting around to the map now so...

1) i would add this to a brush? how do i do that? do i have to make the brush a script object? would the target name be $thebrush? if its not too much trouble could you give like a step by step instructions on how to do this? or is there a tutorial somewhere?

ill just fcus on that for now.

thanks
Post Reply