playMaker

Author Topic: [SOLVED]Sticky Mine, best way to do this?  (Read 1237 times)

crush

  • Playmaker Newbie
  • *
  • Posts: 24
[SOLVED]Sticky Mine, best way to do this?
« 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.
« Last Edit: May 28, 2015, 05:25:39 PM by crush »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Sticky Mine, best way to do this?
« Reply #1 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

crush

  • Playmaker Newbie
  • *
  • Posts: 24
[SOLVED]Re: Sticky Mine, best way to do this?
« Reply #2 on: May 28, 2015, 05:25:10 PM »
Lane you are awesome, thank you for the help and fast reply.