Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: agito1987 on August 24, 2016, 03:16:25 PM

Title: Get Raycast All info to Vector 3 variables
Post by: agito1987 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!



Title: Re: Get Raycast All info to Vector 3 variables
Post by: cwmanley on August 25, 2016, 02:04:29 AM
Hi,

This might help?

Title: Re: Get Raycast All info to Vector 3 variables
Post by: agito1987 on August 25, 2016, 08:23:23 AM
Thank you sooo much!
This works PERFECT! ;D