Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Jenovah on December 11, 2012, 11:39:41 PM
-
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
-
Hi,
Can you clarify what you mean by trigger?
bye,
Jean
-
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.
-
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
-
Thanks for the help, It was that I didn't have a character controller on my character....Oops :)
-
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 :)
-
Hi and welcome :)
Where did you get the "PlayMaker Trigger Enter" component ( the last one)?
Bye,
Jean
-
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?
-
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
-
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 :)
-
Any idea why this is not working?? Anybody :(
-
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?
-
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 :)
-
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;)
-
Thanks a lot 600 :)