playMaker

Author Topic: Counting how many players on a tile  (Read 1167 times)

Nigete

  • Playmaker Newbie
  • *
  • Posts: 1
Counting how many players on a tile
« on: September 05, 2016, 06:03:43 PM »
Hi,

So I want to know how many players(with colliders) are on a tile(which has a box collider).

I've thought about doing Trigger Event: on enter and incrementing but that won't count the players already in the tile.
Then I thought about doing Trigger Event: on stay and changing the player's tags to "counter" so I can use Get Tag Count to count how many players with tag "counter", but that messes with their tags which I need for other FSMs...

Is there a count gameobjects within collider?
Thanks in advance.
-Nigete

Sebby

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Counting how many players on a tile
« Reply #1 on: October 08, 2016, 02:14:39 AM »
Trying to figure out the same exact thing and its driving me crazy.


Anyone know how to do this?