Author Topic: No doors being created even though they were created in the script.  (Read 307 times)

Offline HappyPizza64

  • Contributor Level I
  • *
  • Posts: 109
  • I have far too much ABBA on my playlist
  • Location: Dublin, Ireland
    • View Profile
    • Flickr
So I'm trying to add dualspeed left doors to a BBC lift in a building for B2 of my IP. Although, when I load the building, there are no doors on the outside or inside. What I have done, is copied and pasted the door script from one of the lifts in Beno's Guys Hospital and replaced textures and coordinates with the ones I need. Screenshots:
Inside lift:

Outside lift:

Here is my code in the lift's code:
Code: [Select]
AddDoorComponent 1, InDoor1, doorr, black, 0.2, front, 1, 1.5, 4.69, 4.5, 4.69, 8, 0, 0, 0, 0, 0
AddDoorComponent 1, InDoor2, doorr, black, 0.2, front, 1, 1.5, 4.57, 1.5, 4.57, 8, 0, 0, 0, 0, 0
FinishDoors 1, 0, 0
AddShaftDoorsComponent 1, OutDoor1, doorr, black, 0.2, front, 1, 1.5, 4.81, 4.5, 4.81, 8, 0, 0, 0, 0, 0
AddShaftDoorsComponent 1, OutDoor2, doorr, black, 0.2, front, 1, 1.5, 4.93, 1.5, 4.93, 8, 0, 0, 0, 0, 0
FinishShaftDoors 1, 0, 0

Any ideas on how to fix this? Would I need to add a cut command or something?

(EDIT: I put the wrong code up there. Here is the actual code:
Code: [Select]
elevdoor_dualspeed_left (1, doorr, black, 0.2, 0, -3.62, 3.58, front, 8, false)
elevdoor_dualspeed_left (1, doorr, black, 0.2, 0, -3.9, front, 8, true)
Original code:
Code: [Select]
AddDoors 1, doorr, doorr, 0.2, 0, -3.62, 3.58, 8, true, 0, 0
AddShaftDoors 1, doorr, doorr, 0.2, 0, -3.9, 0, 0
)
« Last Edit: April 15, 2019, 05:07:58 pm by HappyPizza64 »
Thanks a mil,

- HP64

Timezone: GMT

Share on Facebook Share on Twitter


Offline HappyPizza64

  • Contributor Level I
  • *
  • Posts: 109
  • I have far too much ABBA on my playlist
  • Location: Dublin, Ireland
    • View Profile
    • Flickr
If the elevdoor_dualspeed_left function is used, this code need to be included to make the function works:
Code: [Select]
<Include data/scripts/elevator_doors.txt>

I had that included but I've found out the problem: I created the doors on the wrong side of the lift.
Thanks a mil,

- HP64

Timezone: GMT