Please or Register to create posts and topics.

Help with triggers and use

So I've go a bit of an issue here, I want a cube to touch a trigger, and then be +used so it flies over to the player and is picked up. So this is what I tried

Onstarttouch !activator fireuser3

And on the cubes I have

Onuser3 @clientcommand command ent_fire !caller use

Now, I have / bound to ent_fire !picker use, and it works the right way, pulling in a straight path then picking it up. However, the player is not going to be looking directly at the cube for the most part, so !picker is not an option.

The user3 output is the one not working, because for some reason !caller is not valid, and I even tried !activator but still its not working so, I'm just wondering if there is a way to make a clientcommand or servercommand give a command to whatever called it?
you could AddOutPut when the cube touches the trigger

My YouTube Channel: https://www.youtube.com/user/Camben24
Aperture Science: We do our science asbestos we can!

Is it not working in-game, or is hammer just indicating that it's invalid? If it's the latter then there's a chance it does actually work.

ImageImage

Forcing to pick up a cube is a little harder than what first seems. What I suggest here is to actually pass the command 'Use' to a point_servercommand. I did a bit of testing and it seems like it cannot be called from an actual input that is from another entity.

Trigger:
OnStartTouch -> point_servercommand -> Command -> ent_fire cubename Use

?????????????????????????????TWP Releases | My Workshop
srs bsnss wrote:
Is it not working in-game, or is hammer just indicating that it's invalid? If it's the latter then there's a chance it does actually work.

Working in hammer, not ingame.

ChickenMobile wrote:
Forcing to pick up a cube is a little harder than what first seems. What I suggest here is to actually pass the command 'Use' to a point_servercommand. I did a bit of testing and it seems like it cannot be called from an actual input that is from another entity.

Trigger:
OnStartTouch -> point_servercommand -> Command -> ent_fire cubename Use

ok, got it. :thumbup: but I want this to be able to happen to any cube that happens to touch that trigger, so would it be possible to temporarily rename a cube with addoutput so it is named "cubepickup" and then named back after it is dropped by the player?

My YouTube Channel: https://www.youtube.com/user/Camben24
Aperture Science: We do our science asbestos we can!

Yes you can. Very easily as well. When you want it to be renamed, just rename it with "Addouput" "Targetname CUBEPICKUP" then have all of the cubes have the following output:

Ondrop -> CUBEPICKUP -> Addoutput -> "Targetname NULLCUBE"

Happy Mapping

http://www.tophattwaffle.com/ - My site for Source Engine Level Design
http://therewillbescience.com/ - Portal 2, Lab Rat
http://www.moddb.com/mods/portal-2-lab-rat - Portal 2, Lab Rat (MODDB)

Thanks for all the help, it's working now!

My YouTube Channel: https://www.youtube.com/user/Camben24
Aperture Science: We do our science asbestos we can!

Also, it DOES seem to work if the cube has something like OnUser3 !self Use. Then FireUser3 will act like Use should.

Falsi sumus crusto!

Oh, cool. Well, I'll have to try that again, possibly

My YouTube Channel: https://www.youtube.com/user/Camben24
Aperture Science: We do our science asbestos we can!