JavaGuy Posted February 16, 2003 Posted February 16, 2003 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
War Master Posted February 17, 2003 Posted February 17, 2003 Maybe try key usescript value name of script in the func_static entity window. I'm going to try it too.
lassev Posted February 17, 2003 Posted February 17, 2003 Maybe you have noticed it yourself, but the first problem is the error in targetnames: moveablecomputer vs pullablecomputer. And besides your script does not DO the task your have defined. And on the other hand, if you want to affect some dead object, you must use script_targetname. However, I'm not entirely sure about this approach you have. If targeting a func_static to a scriptrunner works then fine, but why do you need two func_statics?
Dea Posted February 17, 2003 Posted February 17, 2003 also think you need to give it a script_targetname, intead of a regular tragetname right?
JavaGuy Posted February 17, 2003 Author Posted February 17, 2003 Thanks all! I actually had a few problems: Yes, it needs a script_targetname to be recognized by the script. The targetnames needed to be resolved--I settled on pullablecomputer. Lastly--this one has burned me before, but I always forget--the keyname always looks like "usesscript" to me, as in "uses script," but it's really just "usescript." Thanks again. Sam
Recommended Posts
Archived
This topic is now archived and is closed to further replies.