playMaker

Author Topic: Get Raycast All info to Vector 3 variables  (Read 1519 times)

agito1987

  • Playmaker Newbie
  • *
  • Posts: 37
Get Raycast All info to Vector 3 variables
« on: August 24, 2016, 03:16:25 PM »
Hey

(sorry in advance for my mediocre English and probably noob question. :-[)

In my project I have 2 types of weapon fire.

-Penetrating
-Non penetrating

Non penetrating works great with the "Raycast" function.

However, I have a problem solving my penetration shots.
I am using the "raycast all" action to determine the damage points over multiple game object along the way (I use those points to create my particle/trigger prefabs).
I get all the vector 3 positions I need by using "Get Raycast All info" within a custom array.
My problem now is, how do I axtract those positions into basic vector 3 variables so I can use those to spawn my prefabs?

thanks in advance!




cwmanley

  • Full Member
  • ***
  • Posts: 107
Re: Get Raycast All info to Vector 3 variables
« Reply #1 on: August 25, 2016, 02:04:29 AM »
Hi,

This might help?


agito1987

  • Playmaker Newbie
  • *
  • Posts: 37
Re: Get Raycast All info to Vector 3 variables
« Reply #2 on: August 25, 2016, 08:23:23 AM »
Thank you sooo much!
This works PERFECT! ;D