AWARD CARRIERLANDING
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | AWARD_CARRIERLANDING | |
| Function Description: | Checks if a player earned a refueling bonus during a sortie by measuring the time between the start of refueling and its end, awarding the bonus if it exceeds 30 seconds and the player hasn't already received it. | |
| File Location: | cmm.XpFunctions.lua | |
| Syntax: | CMM.AWARD_CARRIERLANDING( table PlayerAircraft ) | |
| Return Value: | ||
| Parameters: | Name | Description |
| PlayerAircraft | Event table from a refueling stopped event containing initiator, time, and position; used to determine the duration of refueling and trigger award logic. | |
| Example: | CMM.AWARD_CARRIERLANDING(PlayerAircraft) | |
| Example Description: | Sets the Sortie Bonus for a Carrier Landing for all crew members in the airframe. | |
| Related Functions: | ||
| Notes: | --TODO Code review required | |