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

(Difference between revisions)
Jump to: navigation, search
m (add to Category)
(add description)
 
Line 4: Line 4:
| cat =
| cat =
| syntax = <GameActorUID>;<SubType>[;<Coeff>]
| syntax = <GameActorUID>;<SubType>[;<Coeff>]
-
| description =
+
| 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 =$gmaOptionMil;SEV_Hire_GermanMercCav;200
| example =$gmaOptionMil;SEV_Hire_GermanMercCav;200
| example-description =  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.
| example-description =  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.

Latest revision as of 11:25, 30 July 2012

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