Due to a sudden burst in spammer activity, account creation has been temporarily disabled. Sorry for the inconvenience to any new potential contributors.

CanPayOption

From AGEWiki

Jump to: navigation, search

CanPayOption

Syntax  

CanPayOption = <GameActorUID>;<SubType>[;<Coeff>]

Description

Test the availability of resources required to "pay" for an option.

Available only in Game Engines dated on or after June 27, 2012

See also PayOption

Example  

CanPayOption = $gmaOptionMil;SEV_Hire_GermanMercCav;200

TRUE if the Costs defined for SEV_Hire_GermanMercCav option can be met. AI will only "choose" the option if 200% of the option costs are available.


 

Parameters

<GameActorUID>

Valid GameActor Alias for an Option

<SubType>

The name of the option as defined in SetActorPool

[;<Coeff>]

Optional

For AI, the percentage of the option costs needed before AI will "choose" the option
Forums