playMaker

Author Topic: ArrayMaker  (Read 2097 times)

Bartec

  • Playmaker Newbie
  • *
  • Posts: 14
ArrayMaker
« 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.

shinodan

  • Full Member
  • ***
  • Posts: 180
    • Shinozone
Re: ArrayMaker
« Reply #1 on: September 19, 2017, 03:02:39 PM »
How are you "seeing" them? a Raycast or something?

Bartec

  • Playmaker Newbie
  • *
  • Posts: 14
Re: ArrayMaker
« Reply #2 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.

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: ArrayMaker
« Reply #3 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.

Bartec

  • Playmaker Newbie
  • *
  • Posts: 14
Re: ArrayMaker
« Reply #4 on: September 20, 2017, 01:25:40 AM »
How to filter those Objects with this tool? and put them in my array list?

thanks
« Last Edit: September 21, 2017, 09:18:26 AM by Bartec »