How to access robot follower count for a player?
Posted: Fri Apr 29, 2016 8:08 pm
For my mod im trying to access the current robot follower count on a player.
I looked over the API, and there is a call for the max follower count, but i couldn't find one for the actual current follower count.
Currently i use this call:
It works fine in singleplayer, but in multiplayer this count returns ALL the follower bots in the same force.
And by default in multiplayer all players are in the same force...so for my goal it doesn't work.
Is there a "cheap" way to count the current robot followers for a player, or do i need to make a modding interface request for this? Or did i totally miss something
?
I looked over the API, and there is a call for the max follower count, but i couldn't find one for the actual current follower count.
Currently i use this call:
Code: Select all
player.force.get_entity_count("destroyer")
And by default in multiplayer all players are in the same force...so for my goal it doesn't work.
Is there a "cheap" way to count the current robot followers for a player, or do i need to make a modding interface request for this? Or did i totally miss something
