playMaker

Author Topic: Tag problem  (Read 2439 times)

lioncirth

  • Junior Playmaker
  • **
  • Posts: 74
Tag problem
« on: August 27, 2014, 02:44:47 PM »
Hi

I have another issue

I am creating a trigger on the character that when it it's a tagged object ie floor it plays a particle effect.

If I leave the on trigger event tag as in tagged and the ground as in tagged it works. However if I set the tag on both as Floor it doesn't work - any idea how I can fix this as I want to use tags

Thanks

bizilux

  • Full Member
  • ***
  • Posts: 171
Re: Tag problem
« Reply #1 on: August 27, 2014, 03:08:10 PM »
you probably have multiple gameobjects parented under one, and ur just setting tag on their parent.
make sure tag is where ur collider is, and that  really is same tag, not layer for example

lioncirth

  • Junior Playmaker
  • **
  • Posts: 74
Re: Tag problem
« Reply #2 on: August 28, 2014, 03:00:51 PM »
Hey,

Still doesnt seem to work, ill explain a little more what im trying to do.

The plan is to get it so that when the player hits the ground object, a particle of dust is spawned at the players feet.

I have my character gameobject, I have added a box collider as a child object and called this Foot Trigger.

On this I have added the following FSM;

Start State

* Trigger Event

- On trigger enter with tag "Floor" go to event "Hit Floor"

Hit Floor State

* Creates The Particle Effect

Now the ground object has the parent object which is the mesh.

It then has 5 children objects that are the colliders (so the player doesnt fall through)

I have tried setting the parent with the "Floor" tag and this did not work. I then tried just setting the children objects the tag "Floor" but this also didnt work.

I am sure I am missing something simple but cannot work it out :)

Thanks


600

  • Beta Group
  • Hero Member
  • *
  • Posts: 713
    • Flashing Lights
Re: Tag problem
« Reply #3 on: August 29, 2014, 03:57:11 AM »
Hello,
is your characters box collider set "isTrigger" ?
If im not mistaking FSM of trigger event must be on that gameObject where the trigger is.
Then you probably need another child with collider not to fall through floor.
Maybe this helps :)