Jump to content

Question about FindAvailablePartners() arguments


Recommended Posts

Posted

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.

Archived

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

  • Recently Browsing   0 members

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