- Feb 18, 2014
- 8
- 0
I have made a func_brush cannon that shoots like this and works fine when rotated. What I want it to do though is "aim" the cannon at a specific point, and that point follow the player as long as it is "in range."
One of the better ideas that I have tried was making a trigger_multiple that outputs:
I figure if I got the parent attachment working, the brush would follow the player. Once that works though, what can I do to aim (rotate) the cannon at the tracker? That's the big issue I'm having. Any ideas?
One of the better ideas that I have tried was making a trigger_multiple that outputs:
- OnStartTouch > cannon1_tracker (the "aiming" brush) > SetParent > !activator > 0.00
- OnStartTouch > cannon1_tracker > SetParentAttachment > (I don't know what to put here. I'd prefer something that aims at the feet) > 0.10
- OnEndTouch > cannon1_tracker > ClearParent > > 0.00
I figure if I got the parent attachment working, the brush would follow the player. Once that works though, what can I do to aim (rotate) the cannon at the tracker? That's the big issue I'm having. Any ideas?