playMaker

Author Topic: ArrayMaker  (Read 218 times)

Bartec

  • Playmaker Newbie
  • *
  • Posts: 3
    • View Profile
ArrayMaker
« on: September 19, 2017, 10:33:02 AM »
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: 171
    • View Profile
    • Shinozone
Re: ArrayMaker
« Reply #1 on: September 19, 2017, 12:02:39 PM »
How are you "seeing" them? a Raycast or something?

Bartec

  • Playmaker Newbie
  • *
  • Posts: 3
    • View Profile
Re: ArrayMaker
« Reply #2 on: September 19, 2017, 01: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

  • Sr. Member
  • ****
  • Posts: 480
    • View Profile
Re: ArrayMaker
« Reply #3 on: September 19, 2017, 07: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: 3
    • View Profile
Re: ArrayMaker
« Reply #4 on: September 19, 2017, 10:25:40 PM »
How to filter those Objects with this tool? and put them in my array list?

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