playMaker

Author Topic: Having issue with Third Person Controller and Trigger Event[SOLVED]  (Read 7570 times)

Jenovah

  • Playmaker Newbie
  • *
  • Posts: 3
Hi,

New to Unity and Playmaker.

I set up a trigger to send an event out but for some reason it won't work with the standard third person controller, however it does work with the first person controller, any ideas on what may be the issue?  Thinking maybe there's something missing and it's not activating the trigger for some reason.

Thanks!

j

« Last Edit: December 14, 2012, 08:19:02 PM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Having issue with Third Person Controller and Trigger Event
« Reply #1 on: December 13, 2012, 09:05:36 AM »
Hi,

 Can you clarify what you mean by trigger?

bye,

 Jean

Jenovah

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Having issue with Third Person Controller and Trigger Event
« Reply #2 on: December 13, 2012, 12:53:27 PM »
I basically just created a box, disabled the mesh render, and ticked off the "is trigger" box.

So basically I want it so that when the player walks in that designated cure(trigger) to send an event out.  For some reason, it works when I use the FPS controller, but not when I use the Third person controller.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Having issue with Third Person Controller and Trigger Event
« Reply #3 on: December 14, 2012, 04:06:35 AM »
Hi,

 Ok, this is likely a Physics/collider set up issue here.

Study carefully the difference between your FPS and third person, if your third person controller does not have a character controller, you may have to put a physics component on it.

bye,

 Jean

Jenovah

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Having issue with Third Person Controller and Trigger Event
« Reply #4 on: December 14, 2012, 01:36:18 PM »
Thanks for the help, It was that I didn't have a character controller on my character....Oops :)

sidd4friends

  • Playmaker Newbie
  • *
  • Posts: 17
Re: Having issue with Third Person Controller and Trigger Event[SOLVED]
« Reply #5 on: July 17, 2014, 01:20:51 PM »
Have purchased Playmaker today and loving every moment of it, especially the tutorials  :). However, have been stuck at this issue for the past 4 hours, unable to find the solution.

I have implemented a cube (mesh renderer disabled, box collider as trigger is on). When my first person controller goes inside the box collider, the trigger is properly activated. However, when i use the same settings with the Third Person controller, it is not able to activate the trigger. One of the solutions in the forums has said to check if the Character Controller is attached to the 3rd Person Controller. As you can see from the image, it is attached.

Please help as I am unable to find any solution to this. Thanks a lot  :)


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Having issue with Third Person Controller and Trigger Event[SOLVED]
« Reply #6 on: July 17, 2014, 01:53:57 PM »
Hi and welcome :)

 Where did you get the "PlayMaker Trigger Enter" component ( the last one)?

 Bye,

 Jean

sidd4friends

  • Playmaker Newbie
  • *
  • Posts: 17
Re: Having issue with Third Person Controller and Trigger Event[SOLVED]
« Reply #7 on: July 17, 2014, 09:09:55 PM »
Hello Jean,

I added it from Add Component --> Scripts. I thought adding this script would allow the Trigger Enter Action to work for my Third Person Controller, but it didn't. Do i need to remove this?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Having issue with Third Person Controller and Trigger Event[SOLVED]
« Reply #8 on: July 18, 2014, 08:13:54 AM »
Hi,

 I don't know where you got it from to begin with, so I am not sure what it does, first time I encountered it.

 Triggers are built in PlayMaker, so you should need this in your case. Remove it and try again. Also, can you paste a screenshot of your fsm where you are trying to get this trigger?

and are you not confused between triggers and colliders? they both need a collider component but you can turn that collider into a trigger if you decide too ( not stopping other colliders, simply alerting it's been touched).



 Bye,

 Jean

sidd4friends

  • Playmaker Newbie
  • *
  • Posts: 17
Re: Having issue with Third Person Controller and Trigger Event[SOLVED]
« Reply #9 on: July 18, 2014, 09:58:02 AM »
Hello Jean,

Thanks for the helping :) I have removed that script and am using the default 3rd Person Controller which comes with the Standard Package. I have enabled the collider of the cube as trigger and when the First Person Controller enters the cube, it is triggered and hence destroyed. But this doesn't work for the 3rd Person Controller.

I am attaching the screenshots of the 3rd Person Controller, the FSMs of the Idle State of the cube and that of the Destroy State. Please let me know if I am missing something basic as the same thing works well with the 1st Person. I have also tried implementing a box collider on the 3rd person controller but of no use.

Thanks  :)

sidd4friends

  • Playmaker Newbie
  • *
  • Posts: 17
Re: Having issue with Third Person Controller and Trigger Event[SOLVED]
« Reply #10 on: July 19, 2014, 06:25:25 AM »
Any idea why this is not working?? Anybody  :(

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 715
    • Flashing Lights
Re: Having issue with Third Person Controller and Trigger Event[SOLVED]
« Reply #11 on: July 19, 2014, 06:34:42 AM »
Hi, from screenshots it looks like there are no Tag set up in trigger enter event.
Set it to Player tag.

In "Idle.tiff" Collide tag.

Maybe this?
« Last Edit: July 19, 2014, 06:42:41 AM by 600 »

sidd4friends

  • Playmaker Newbie
  • *
  • Posts: 17
Re: Having issue with Third Person Controller and Trigger Event[SOLVED]
« Reply #12 on: July 19, 2014, 07:22:44 AM »
Hi, from screenshots it looks like there are no Tag set up in trigger enter event.
Set it to Player tag.

In "Idle.tiff" Collide tag.

Maybe this?

Perfect :D That worked like a charm!!! Thanks a ton :) Can you please explain why the tag was important, maybe it would help clear my concept.....Thanks again for the help :)

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 715
    • Flashing Lights
Re: Having issue with Third Person Controller and Trigger Event[SOLVED]
« Reply #13 on: July 19, 2014, 08:13:57 AM »
With action "Trigger Event" you can sort by Tag so you can have different triggers for example - when player gets in trigger zone happens one thing, but if enemy(with Enemy tag) enters happens something else.
If you want to trigger react to all gameObjects, you can use System events -
Right click a state Add Global Transition>System Event> Trigger Enter or other.

Have a good day;)

sidd4friends

  • Playmaker Newbie
  • *
  • Posts: 17
Re: Having issue with Third Person Controller and Trigger Event[SOLVED]
« Reply #14 on: July 19, 2014, 08:38:52 AM »
Thanks a lot 600 :)