Jump to content

Home

Script question


JavaGuy

Recommended Posts

I have a computer I want the player to be able to tip over by Force Pulling it. So...

 

I made an Origin brush, then selected the computer brush and the Origin brush simultaneously, right-clicked on them (I'm using Radiant) and declared them to be func_static. I then hit the "n" key and gave them a targetname of moveablecomputer.

 

Next, I created a thin brush in front of the computer and covered it with caulk. I made it a func_static and set the F_PULL flag on it. I set its target to a scriptrunner that runs this script:

 

//************

 

affect ( "pullablecomputer", /*@AFFECT_TYPE*/ FLUSH )

{

 

task ( "tip" ) {

rotate( <0 180 0>, 1000 );

}

}

 

 

//************

 

Theoretically, when my crosshair is over the invisible "target region" created by the caulky brush, which is present but invisible in-game, I should get the blue swirly crosshair that means I can use the Force on it. That works. So far, so good. But when I Force Pull it, nothing happens. I mean nothing. I don't get a message saying it can't find my script. I don't get anything.

 

Suggestions?

 

Thanks!

Sam

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...