Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: crush on May 28, 2015, 02:02:29 PM

Title: [SOLVED]Sticky Mine, best way to do this?
Post by: crush on May 28, 2015, 02:02:29 PM
Hi, I'm putting together some different ways of making a sticky mine projectile and just wondering if anyone can suggest a good way to do this with playmaker. Actions I could use etc.

It's a projectile that is launched from a moving player, hits a moving enemy and appears on the enemy in a fairly accurate location to where it landed if possible and is detonated by the player with a second button press.

So far I am launching the projectile and if it hits an enemy with a certain tag, I just hide it and unhide another projectile prefab that is already hidden on the enemy prefab in random locations. It works fine, but I am sure there is a better way to do this, so that it "looks" more accurate to the hit location.  Thanks for any ideas here.
Title: Re: Sticky Mine, best way to do this?
Post by: Lane on May 28, 2015, 02:44:36 PM
You can store the collision position and normal and either unhide it and move to that position or just stop the mine from moving and parent it to the collider it hit.
Title: [SOLVED]Re: Sticky Mine, best way to do this?
Post by: crush on May 28, 2015, 05:25:10 PM
Lane you are awesome, thank you for the help and fast reply.