playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Bullets just won't work [SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Bullets just won't work [SOLVED] (Read 1955 times)
jayf
Playmaker Newbie
Posts: 40
Bullets just won't work [SOLVED]
«
on:
June 18, 2014, 06:45:04 AM »
Hi.
I'm trying to make a projectile that damages enemies, so basically the just standard "bullet". After googeling and following various tutorials, I still can't seem to make it work. However the answer seems to be adding an "On Collision" transition to trigger the rest of the actions. But it still can't seem to work. I've attached the FSM setup. The "Hit Target" Action contains stuff like "Send Event" and "Get Collision Info".
«
Last Edit: June 18, 2014, 09:50:16 PM by jayf
»
Logged
Lane
Administrator
Hero Member
Posts: 2511
Mender of the past
Re: Bullets just won't work
«
Reply #1 on:
June 18, 2014, 07:06:35 AM »
Does the bullet and the thing it hits both have colliders?
Logged
Products by Cleverous
||
Vault Core
: Database
||
Vault Inventory
: Multiplayer Inventory
||
Vault Attributes
: Character Stats
||
That Hurt!
: Dmg Floaties
||
Quinn
: 3D
jayf
Playmaker Newbie
Posts: 40
Re: Bullets just won't work
«
Reply #2 on:
June 18, 2014, 08:16:00 AM »
Enemy has a collider, the bullet doesn't. If I add a collider to the bullet, it seems to disappear, or it can't seem to spawn for some odd reason. Without a collider, it works fine with an Add Torque action.
Logged
Lane
Administrator
Hero Member
Posts: 2511
Mender of the past
Re: Bullets just won't work
«
Reply #3 on:
June 18, 2014, 08:32:19 AM »
The bullet must have a collider. It probably disappears because it spawns inside a collider such as the gun or the player. Can you confirm?
Logged
Products by Cleverous
||
Vault Core
: Database
||
Vault Inventory
: Multiplayer Inventory
||
Vault Attributes
: Character Stats
||
That Hurt!
: Dmg Floaties
||
Quinn
: 3D
jayf
Playmaker Newbie
Posts: 40
Re: Bullets just won't work
«
Reply #4 on:
June 18, 2014, 09:49:42 PM »
Yes! That was the problem. They actually spawned inside the gun and got destroyed before actually leaving it, so I made them spawn outside instead and now their hits register with the enemy since they now have a collider. Thanks for the help!
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Bullets just won't work [SOLVED]