wood in water

Discussion in 'Mapping Questions & Discussion' started by wrock, May 15, 2009.

  1. wrock

    wrock L1: Registered

    Messages:
    19
    Positive Ratings:
    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
     
  2. wiseguy149

    wiseguy149 Emperor of Entities and Amateur of Aesthetics

    Messages:
    103
    Positive Ratings:
    160
    Make it a prop_physics and see if that works first.
     
  3. Mick-a-nator

    aa Mick-a-nator

    Messages:
    640
    Positive Ratings:
    314
    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...
     
  4. wrock

    wrock L1: Registered

    Messages:
    19
    Positive Ratings:
    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
     
  5. kwagner

    kwagner L2: Junior Member

    Messages:
    92
    Positive Ratings:
    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.
     
  6. Mick-a-nator

    aa Mick-a-nator

    Messages:
    640
    Positive Ratings:
    314
    did you set the outputs to the model? need to make the model part of the door (associated model, dunno if I already said that) and set the outputs to the door brush, not the model.
     
  7. wrock

    wrock L1: Registered

    Messages:
    19
    Positive Ratings:
    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