Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Deevit on April 28, 2016, 06:37:25 AM

Title: Arrow instance to land on target
Post by: Deevit on April 28, 2016, 06:37:25 AM
Hi,

I am having trouble getting my arrow instance to land on it's mark correct.

I think the problem is that my arrow is a prefab and needs to get it's landing position from a prefab, but when I do this the arrow wil alway's drop on the target prefab position, not the target set value I create when key is up.

What I want is the arrow to reference the scene target not the prefab target. Can anyone explain to me how I can instance the arrow and make it reference the scene target?

Basically I am having trouble working with scene objects and prefab objects
Title: Re: Arrow instance to land on target
Post by: dudebxl on April 28, 2016, 09:52:28 PM
Are u using world position?
Title: Re: Arrow instance to land on target
Post by: Deevit on May 02, 2016, 05:59:01 AM
I solved the problem with global variables. It is not the most ideal but for my prototype it's fine.

Next step is to give every arrow fired a different target position so it won't reset with every next shot and the arrow changes direction every mouse click...