playMaker

Author Topic: Setting Explosion Center on gameobject[SOLVED]  (Read 2365 times)

Avascar

  • Playmaker Newbie
  • *
  • Posts: 45
Setting Explosion Center on gameobject[SOLVED]
« on: October 03, 2013, 02:46:20 AM »
How do I setup the "Explosion" action event, where the input says "center" (the center of the explosion) in a way that makes a gameobject the center?

In better words, I'm creating more than one gameobject (that moves constantly) and I want it so they still have an explosion event onto them, not a specific location.
« Last Edit: October 04, 2013, 01:19:36 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Setting Explosion Center on gameobject
« Reply #1 on: October 03, 2013, 05:22:11 AM »
Hi,

 storeyout center gameobject position into a vector3 and inject that into the addExplosionforce action.

I am not sure I follow what you are saying after that regards your "moves consantly", and explosion generally occurs at a fixed point.

bye,

 Jean

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Setting Explosion Center on gameobject
« Reply #2 on: October 03, 2013, 07:18:26 AM »
Are you saying you want the explosion to follow the object? As in it explodes, then momentum may keep it moving but the explosion is lagging behind at the point where it "died"?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Avascar

  • Playmaker Newbie
  • *
  • Posts: 45
Re: Setting Explosion Center on gameobject
« Reply #3 on: October 03, 2013, 09:21:59 PM »
Nevermind, I got it.

Thanks for the information though, it did help me.