Hello,
I need help with scripting about door triangle for trams, I can’t see any video for that tutorial.
Hello,
I need help with scripting about door triangle for trams, I can’t see any video for that tutorial.
I don’t quite understand what you mean, do you mind elaborating? If you mean a simple door, you can turn off Collisions.
Can you give me a reference image and describe what exactly you want?
Ohh, I see. I’m not sure how to script that, really, as I only know the basics of scripting. Like I said before, I think the best advice I can give you is model it, and turn off collisions through properties, so you can walk through it. Then just add a clear barrier on the sides of the track, so people don’t fall out.
I know, that easy way collisions off like considering doors are open. xD
What about sliding door?
Hmm, That could take a lot of work, of which I don’t know the steps. Try looking up how to script collisions off on queue, if possible? Again, I only know basic scripting for jobs I commonly do.
You should be able to set the CanCollide property of the door to false when tweening it in the case of a sliding door, that way it doesn’t hinder the player if something goes wrong with the tweening/the door isn’t open all the way.
Or, could use transparency. As doors open collisions on, doors closed collisions off and transparency 1 so people can go trough of it.