wood in water

  • If you're asking a question make sure to set the thread type to be a question!

wrock

L1: Registered
Apr 15, 2009
19
0
Hi,
how can i make, that some tree trunk swims in the water, and if you walk on it, it goes a little down?
Is it possible with hammer?
thx for help
 

wiseguy149

Emperor of Entities and Amateur of Aesthetics
May 12, 2009
103
220
Make it a prop_physics and see if that works first.
 
Feb 18, 2009
640
629
I am guessing here, I'm no expert with hammer effects.

I would make the log a door. If that doesn't help, here is a more detailed explanation:

put the log in a func_door (the brush can be made invisible, it's an option in the entity properties) with a direction of down and set a low speed, and put a trigger multiple (as close as possible to the log, and not under it, if that makes sense).
In this entity's outputs, set OnStartTouch -> [log/door name here] -> open
then OnEndTouch -> [log/door name here] -> close
(pretty self explanatory that last one :p.

see what that does...
 

wrock

L1: Registered
Apr 15, 2009
19
0
ok, thx in the whole it works, but i have some problem with the trigger:

Output: i changed to onendtouchall and set the right model, but there isn´t a close(or a open) in via this input
 

kwagner

L2: Junior Member
Feb 28, 2009
92
6
I've never used the ...touchall events. I've always just used onstarttouch and onendtouch. Those definitely have open and close options.

Probably ought to uncheck the 'touch opens' flag too? Leaving that checked might create some oddness, I suppose.
 

wrock

L1: Registered
Apr 15, 2009
19
0
it doesn't work good with func_door, so i used func_movelinear, works better :thumbup:

the last problem is that there is a little delay...but thx for help