playMaker

Author Topic: Issues with two Array variable types in playmaker [SOLVED]  (Read 1531 times)

mrminico

  • Full Member
  • ***
  • Posts: 129
Issues with two Array variable types in playmaker [SOLVED]
« on: September 08, 2021, 04:39:56 AM »
Hello everyone so I'm having an Issue with Cinemachine target group script. I'm trying to assign variables to an array using playmaker actions but Its not working or allowing me to use the array variables for array maker.

Heres what I got:

The Cinemachine Target Group is used to assign game objects that the camera will track. This is how the list looks when I manually assign objects without using playmaker.

https://imgur.com/a/fymr1jh

When I want to add the game objects to the cinemachine target group, I tried using every Array add action. I even indexed the proper values and it works perfectly fine. playmaker detects it. Click the image link below to see the FSM.

https://imgur.com/OCnwN2i


However, I get this error where the game objects, weight, and radius list is empty. Click the image link below to see

https://imgur.com/Snqp3Mf


I tried every single array add action but still got the same error of the list showing up empty

Here is the state that shows the target array values (which works) but is not assigned at runtime.

https://imgur.com/K2sDwQt
« Last Edit: November 03, 2021, 08:49:36 AM by mrminico »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Issues with two Array variable types in playmaker
« Reply #1 on: September 14, 2021, 08:15:37 AM »
Hi.
Playmaker arrays are not component arrays :)

Does the cinemachine package (Ecosystem) not have actions for it

mrminico

  • Full Member
  • ***
  • Posts: 129
Re: Issues with two Array variable types in playmaker
« Reply #2 on: September 16, 2021, 02:29:40 AM »
Hi.
Playmaker arrays are not component arrays :)

Does the cinemachine package (Ecosystem) not have actions for it

Im a bit confused, what do you mean buy playmaker arrays are not component arrays?

Also I linked a picture above and it shows the Actions for Cinemachine target group.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Issues with two Array variable types in playmaker
« Reply #3 on: September 16, 2021, 11:41:07 AM »
Hi.
Sorry i did not see the last image and have not used cinematics yet.

You probably need 3 Arrays on the 'Target Group Set Target'

on the image i can see that you only set 'Player targets'
but Weights and Radius are empty.

These arrays should probably be the same size as well (so if player targets has 2 items, Weights array should have 2 items as well. and Radius as well.

mrminico

  • Full Member
  • ***
  • Posts: 129
Re: Issues with two Array variable types in playmaker
« Reply #4 on: September 21, 2021, 08:23:57 AM »
Hi.
Sorry i did not see the last image and have not used cinematics yet.

You probably need 3 Arrays on the 'Target Group Set Target'

on the image i can see that you only set 'Player targets'
but Weights and Radius are empty.

These arrays should probably be the same size as well (so if player targets has 2 items, Weights array should have 2 items as well. and Radius as well.

Hi djaydino,

I figured out my problem. It wasn't the use of 3 arrays or any of that for some reason It worked after I deleted the entire script and attached a new one Target Group Script.

I'm guessing it glitched after all the times i tried to set these variables. I still wish this action allowed use of arraymaker arrays instead of playmaker's default arrays.