Roof hider problem

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
terrymorgan
Posts: 97
Joined: Wed Sep 10, 2014 5:29 pm

Roof hider problem

Post by terrymorgan »

I'm trying to make 2 different buildings roofs disappear, made separate on off triggers for each building,

Sequence in 1
SetEnabled(MeshRenderer, true, farm_bldg_a_roof)

in the other
SetEnabled(MeshRenderer, true, farm_bldg_b_roof)

Building a goes on and off properly, but building b only has the roof disappear, on exit the roof doesn't reappear.
I'll make a small demo of this.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Roof hider problem

Post by Tony Li »

Hi Terry,

Is the exit sequence getting triggered for building b? (If you set Dialogue Manager > Debug Level to Info, it will show you.) If not, here some some things to check:
  • Trigger is set to OnTriggerEnter
  • There aren't any Conditions on the sequence trigger that prevent it from firing
  • Sequence references the right GameObject, doesn't have typos
terrymorgan
Posts: 97
Joined: Wed Sep 10, 2014 5:29 pm

Re: Roof hider problem

Post by terrymorgan »

I asked Hitbear about this, he said, put a collider tagged 'Wall' inside your roof, then the camera will zoom inside
anything tagged "Wall". It kind of works, still might need these trigger things for something else.
Attachments
wall_tag_on_roof.jpg
wall_tag_on_roof.jpg (145.03 KiB) Viewed 569 times
Post Reply