Scripted objects move strangely

Discussion in 'Halo and Forge Discussion' started by BeardlessBen, Aug 26, 2017.

  1. BeardlessBen

    BeardlessBen Legendary
    Senior Member

    Messages:
    121
    Likes Received:
    142
    hi there,

    I've noticed this on some people's scripted objects and now mine are doing the same thing.

    I have scripted windows that open like shutters - one moves up and one down - one window is fine and opens/closes smoothly. The other moves a bit erratically, which obviously isn't great aesthetically.

    Does anyone know the reason for this?

    Any help would be greatly appreciated.

    Thanks in advance!
     
  2. ACTIVATE HALO

    ACTIVATE HALO Legendary

    Messages:
    166
    Likes Received:
    254
    I don't know the reason for sure. Someone here will however.
    As far as I know it's just the game being unstable. Scripting bugs out.

    There are ways around it so I've heard from Foge and Brusky.
     
    GrayishPoppy210 and BeardlessBen like this.
  3. GrayishPoppy210

    GrayishPoppy210 Legendary
    Senior Member

    Messages:
    657
    Likes Received:
    1,085
    Yeah it's just another scripting thing. Moving objects slower is one way to make movement smoother or using sliders etc. Rather than scripting. If there are any better ways I'd love to know.
     
    BeardlessBen and ACTIVATE HALO like this.
  4. ACTIVATE HALO

    ACTIVATE HALO Legendary

    Messages:
    166
    Likes Received:
    254
    I've seen one way where a door opens using gravity modifiers.
     
    BeardlessBen likes this.
  5. Buddy Jumps

    Buddy Jumps Jumpmaster
    Senior Member

    Messages:
    686
    Likes Received:
    1,761
    There is no real way to enhance the actual scripted movement of objects. If possible, always limit the object count of such objects to one. It maximizes the chances of it going smoothly. The higher the object count/(overall) polygon count, the higher the chances of it screwing up.
     
    ACTIVATE HALO and BeardlessBen like this.
  6. BeardlessBen

    BeardlessBen Legendary
    Senior Member

    Messages:
    121
    Likes Received:
    142
    Nice, I think that's the problem, the windows are made up of many objects in a group. This explains why my lift in the same map works fine.

    Thanks a lot for the advice everyone, really appreciate it!
     
    ACTIVATE HALO likes this.
  7. ExTerrestr1al

    ExTerrestr1al Forerunner
    Senior Member

    Messages:
    2,387
    Likes Received:
    2,515
    Yeah, never group amd then script movement. Each piece has to have its own movement script.

    I have perfected movement scripts for doors. Perhaps ill release a prefab soon.
     
    BeardlessBen likes this.
  8. BeardlessBen

    BeardlessBen Legendary
    Senior Member

    Messages:
    121
    Likes Received:
    142
    Yeah you really should! Maybe if you're up for it, you could do a write up of your scripting techniques as its own forum post. I bet a lot of people would find that very useful.

    My windows are functioning better now but they're still not perfect. Do you know if I can just delete the script to start again or do you need to delete the entire object?
     
  9. ExTerrestr1al

    ExTerrestr1al Forerunner
    Senior Member

    Messages:
    2,387
    Likes Received:
    2,515
    cool. I'll try to get around to doing a complete write-up in the near future. I am close to posting a walkthrough of the map these will be released in, so hopefully I'll be able to release the door stuff around the same time there is a shared beta version of the map out already.

    to your question - you do not need to delete items most of the time. If you think there's just something wrong with an item and the game might not be loading it correctly I guess you can always delete it to be sure. But, deleting the scripts out of them and then just adding blank ones is a good way to start fresh on something.

    Question for you. Do your windows swing or just slide? I do not have any experience doing the hinges and swinging stuff, fwiw. I am going to do a write up about sliding doors and stuff...
     
    BeardlessBen likes this.
  10. BeardlessBen

    BeardlessBen Legendary
    Senior Member

    Messages:
    121
    Likes Received:
    142
    Nice I will have to keep an eye out for your write up.

    My windows slide, one up, one down. They seem to be working a lot better since I made them into two separate objects with their own scripts, so thanks a lot for that!
     

Share This Page