playMaker

Author Topic: Bullets won't work [SOLVED]  (Read 2290 times)

SteamXR1

  • Playmaker Newbie
  • *
  • Posts: 6
Bullets won't work [SOLVED]
« on: April 06, 2016, 03:29:56 PM »
Like the title says, I can't get bullets to work. I've used the set-ups from muliple tutorials and the Youtube assets from the official one series but none of them seem to work. Both the bullet and object have colliders that I can see hitting each other, but nothing happens. The gun it self doesn't have a collider, so it isn't hitting that either.
« Last Edit: April 07, 2016, 12:59:26 AM by Alex Chouls »

SteamXR1

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Bullets won't work
« Reply #1 on: April 06, 2016, 03:37:38 PM »
My set-up

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Bullets won't work
« Reply #2 on: April 06, 2016, 04:51:29 PM »
Does the bullet have a RigidBody component?

SteamXR1

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Bullets won't work
« Reply #3 on: April 06, 2016, 04:56:58 PM »
yes

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Bullets won't work
« Reply #4 on: April 06, 2016, 06:35:11 PM »
Is COLLISION ENTER not triggered?
What versions of Playmaker and Unity are you using?

SteamXR1

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Bullets won't work
« Reply #5 on: April 06, 2016, 06:51:43 PM »
5.3.1f1 and 1.8.0f43

It doesn't look like Collision Enter is triggered.

SteamXR1

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Bullets won't work
« Reply #6 on: April 06, 2016, 06:53:18 PM »
This is the set up for the target getting hit as well.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Bullets won't work
« Reply #7 on: April 06, 2016, 11:09:36 PM »
The target collider is a trigger (Is Trigger is checked) so you need to use TRIGGER ENTER instead of COLLISION ENTER.

SteamXR1

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Bullets won't work
« Reply #8 on: April 07, 2016, 12:03:41 AM »
ok it works perfectly now. Thanks man.