Jump to content

Question about FindAvailablePartners() arguments


Recommended Posts

Hello, I want to make sure I am using the function right. The declaration of the function is like this:

 

Actor[] function FindAvailablePartners(actor[] Positions, int total, int males = -1, int females = -1, float radius = 10000.0)

 

Does the total include the number of the actors provided in Positions? Also, does males include the number of actors in Positions, too? Does females include the number of actors contained in Positions, too? For example, if I had two actors one male and another female provided to FindAvailablePartners() in the given Positions, and I need 0 males and 3 females for the function to find them for me. Would the call be like:

 

FindAvailablePartners(Positions, 5, 1, 4)

 

or

 

FindAvailablePartners(Positions, 5, 0, 3)

 

Thanks.

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use