Jump to content

Recommended Posts

Posted

That style of map from Leadwerks 3.0 is actually what lead to the creation of the current example maps. However, that map itself was never included in Leadwerks 3.1 on Steam.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

That's a shame. Is there any chance of a new one for Leadwerks 3.1 being made? An working example of how to make such doors would be extremely useful.

Posted

@Josh @macklebee Thanks. It took some trial and error with messing around with both the pin and offset numbers (and some rather funny results), but have now worked out how to make traditional doors using that script.

Posted

Ok Bansama how did you get it to work.

After seeing your first post I tried using the swing door script but with little success. Changing the offset made the door change position, not it point of rotation, as I would expect it to.

I'm interested in how you got it to work.

Posted

Here's what I did:

 

1 - Loaded up the tutorial map 03-Doors and saved it with a new name. That way any mistakes won't render the tutorial map useless should it be needed in the future.

 

2 - Using the second set of doors, I replaced the sliding door script for both doors with the swinging door one.

 

3 - Opened up the Flowgraph Editor and made sure the BoXTrigger:CollisionTrigger Collision() option was linked to the slidingdoor_left:SwingingDoor Open() and slidingdoor_right:SwingingDoor Open() options. If those don't exist in the Flowgraph Editor you may need to drag the door objects in to the Flowgraph Editor screen.

 

4 - Set the values in the script for slidingdoor_left: Offset 0.0, 0.0, 1.0; Pin 0.0, 1.0, 0.0

 

5 - Set the values in the script for slidingdoor_right: Offset 0.0, 0.0, -1.0; Pin 0.0, -1.0, 0.0

 

The trick will be getting the right combination of values to have any door opening on the side and in the direction you want.

 

Hope that helps.

Posted

Glad to hear you got it working. I will add though that depending on the size and position of your door, you'll want to mess around with which actual offset to use (x, y, z) and try sizes that are smaller than 1.0. I found that for a door with a width of 128 cm, an offset of 0.7 works rather well.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...