Results 1 to 3 of 3

Thread: rotate pitch problem

  1. #1
    Private
    Join Date
    Jan 2014
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    rotate pitch problem

    well, I want an rotating "bank" ( www.google.com/translate ) on my fair,
    but when I activate it in the game It turns the bank too. and the bank have to be how it is now ( see screenshot )

    How do I fix this?






    Click image for larger version. 

Name:	killtube1.png 
Views:	39 
Size:	974.1 KB 
ID:	691

  2. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    You need to set an origin brush between the 2 arms and assign it to your script_brushmodel.

    1. Make brush between 2 arms
    2. Set texture "origin"
    3. Select the origin brush, then select the bank
    4. Rightclick -> script -> brushmodel

    Made a video about it here: http://killtube.org/showthread.php?3...ng-brushmodels
    timescale 0.01

  3. The Following User Says Thank You to kung foo man For This Useful Post:

    pollo (16th April 2014)

  4. #3
    Private pollo's Avatar
    Join Date
    Jul 2012
    Location
    Spain
    Posts
    116
    Thanks
    93
    Thanked 69 Times in 35 Posts
    Make 1 brushmodel for each lever:

    LEVER1: origin brush + lever brush -> right click -> script_brushmodel -> N -> targetname: lever1
    LEVER2: origin brush + lever brush -> right click -> script_brushmodel -> N ->targetname: lever2

    Note: the origin brush will be the axis where the brushmodel will rotate around (@expert modders, correct me if I'm wrong xD I'm tryin to explain the best I can)

    Now a script_brushmodel for the bank:

    Bank: orgin brush + bank brush -> right click -> script_brushmodel -> N -> targetname: bank



    Now make a trig to activate it:

    Normal brush -> right click ->trigger -> (whatever) -> N ->targetname: trig

    now in script:

    PHP Code:
    main()
    {
    trig getent("trig","targetname");
    lever1 getent("lever1","targetname");
    lever2 getent("lever2","targetname");
    bank getent("bank","targetname");

    while(
    1)
    {
    trig waittill("trigger");
    lever1 rotatepitch(360,2);
    lever2 rotatepitch(360,2);
    bank rotatepitch(360,2);
    wait 5;
    }

    Change "pitch" instead "roll" if needed, I always get confused with that^^

  5. The Following User Says Thank You to pollo For This Useful Post:

    kung foo man (16th April 2014)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •