Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Bartec on September 19, 2017, 01:33:02 PM

Title: ArrayMaker
Post by: Bartec on September 19, 2017, 01:33:02 PM
Hi all,
i need the easyest way to store all sighted objects in a playmaker array list proxy (Script), but just when they are sighted, else remove them.


regards.
Title: Re: ArrayMaker
Post by: shinodan on September 19, 2017, 03:02:39 PM
How are you "seeing" them? a Raycast or something?
Title: Re: ArrayMaker
Post by: Bartec on September 19, 2017, 04:31:02 PM
Hey,
raycast playmaker actions.

recently i got a tool that stores sighted objects in a array.
transfer or remove them in my array list proxy not working as i want.
Title: Re: ArrayMaker
Post by: tcmeric on September 19, 2017, 10:41:12 PM
Honestly I ended up switching to the sensor toolkit, which has playmaker actions: https://www.assetstore.unity3d.com/en/#!/content/88036

I had my own stuff going, but it was a lot of work to maintain. This one can have different fields of vision (or a raycast). Stores seen objects in arrays. Can filter those objects easily. Can detect % seen of the object. Removes them from arrays, etc.

If you want to build yourself with playmaker. Basically, you need to keep testing what the ray is hitting. Add it to the array. Then compare what is in the array to what the ray is hitting. If they don't match, then its been removed.
Title: Re: ArrayMaker
Post by: Bartec on September 20, 2017, 01:25:40 AM
How to filter those Objects with this tool? and put them in my array list?

thanks