Jump to content
Sign in to follow this  
jonilahtinen

How to detect if player has reached upstairs of a building?

Recommended Posts

I want to make trigger that activates on player, but it has to be on the 2nd floor.

 

Bit like in the BIS Marksmen Showcase mission where you can find the map on the table.

 

How to achieve this?

Share this post


Link to post
Share on other sites

You could just place an object or game logic at top of stairs and use a simple distance check

Share this post


Link to post
Share on other sites

In the upcoming patch, you'll be able limit height of the trigger and move it to the floor.

3den_triggerAreaZ.gif

 

Can be already tested in the dev branch.

  • Like 2

Share this post


Link to post
Share on other sites

In the upcoming patch, you'll be able limit height of the trigger and move it to the floor.

3den_triggerAreaZ.gif

 

Can be already tested in the dev branch.

But can you lift the bottom off the ground floor too?

Share this post


Link to post
Share on other sites

Can trigger be lifted off from the ground?

Yes, it can.

 

EDIT:

Just did a fast mock-up of the OP's scenario and it works nicely with the new trigger functionality.

Edited by h -
  • Like 1

Share this post


Link to post
Share on other sites

But can you lift the bottom off the ground floor too?

 

 

You mean if the trigger can be lifted off from the ground?

Yes, it can.

Doesn't the video already demonstrate that you set the trigger height?

Share this post


Link to post
Share on other sites

Doesn't the video already demonstrate that you set the trigger height?

No, it only shows the top limit. That's why I asked.

But it's great that it works on both ends. :clap:

Share this post


Link to post
Share on other sites

In the upcoming patch, you'll be able limit height of the trigger and move it to the floor.

3den_triggerAreaZ.gif

 

Can be already tested in the dev branch.

It's not working in this update 1.58
 
Exist the "Trigger" 10x10x10m in editor, but its height remains the same (infinite)
 
:(

Share this post


Link to post
Share on other sites
Does not work.

 

I am using the Sneak Preview version and the stable version does not work.

Share this post


Link to post
Share on other sites

 

Does not work.
 
I am using the Sneak Preview version and the stable version does not work.

 

 

It absolutely works in both Stable and Dev:

 

7XVpEYK.jpg

 

3c24KAJ.jpg

  • Like 1

Share this post


Link to post
Share on other sites
Thank Kylania!

 

I thought I was going crazy because I remember seeing this possibility in the editor in the Dev version 1.60, and then was not available in the stable version 1.60.

 

So I'm for wait for the release stable version.

Share this post


Link to post
Share on other sites

It's in the 3D editor on the current stable branch now.  That's what the screenshots are from, see the version number?  Dev Branch is up to 1.63.137377.

Share this post


Link to post
Share on other sites

100 % works from the editor. Such a great addition. Couldn't get it to work with scripted triggers though but I only gave it a quick go so likely, I just didn't set it correctly.

Share this post


Link to post
Share on other sites

A simple distance check can be added in the trigger condition. That makes it like a sphere.

Share this post


Link to post
Share on other sites

A simple distance check can be added in the trigger condition. That makes it like a sphere.

 

Or just click the Ellipse button and make it an actual sphere. :)

Share this post


Link to post
Share on other sites

Or just click the Ellipse button and make it an actual sphere. :)

That only makes it a cylinder, right? Not a sphere?

Share this post


Link to post
Share on other sites

That only makes it a cylinder, right? Not a sphere?

 

ea0a4ab0d33860211d318ff962d827a51848633b

 

You're probably right, i didn't check as I was late getting back from lunch! heh

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×